Does Haskell, or a specific compiler, have anything like type-level lambdas (if that's even a term)?
To elaborate, say I have a parametrized type Foo a b
and want Foo _ b
to be an instance of, say, Functor. Is there any mechanism that would let me do something akin to
instance Functor (a -> Foo a b) where
...
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…