Can someone tell me why this code does not compile
data A = A { _b :: B } makeLenses ''A type B = String
with message
Not in scope: type constructor or class B
and it does:
type B = String data A = A { _b :: B } makeLenses ''A
Without makeLenses everything compiles fine.
Why can't I write a synonym declaration after makeLenses?
source share