Hey folks,
Some times ago I proposed a bunch of type class to be added:
Only the last was added, so I'm still relaying on some custom shapeless build on experimental project, and now I currently writing a small introduction to use HList to write DSL, and I one more time face the limitation on not having covariance when working with ADT in HList.
So could someone show how to achieve something similar to this without those covariant typeclass?
Of course the example is not complete, because once this work, I want 'route' to take a second which is a function take a type transformed like this for example:
Name :: PathElement[Int] :: HNil => filtering Name, and then using NatTRel to extract inner type => Int :: HNil
I would love to be proved wrong, but I really think we need those typeclass to achive something like this, and this can be really useful to write polytypic DSL based on ADT.
Thanks
Alois Cochard