6
Może ktoś powiedzieć, dlaczego ten kod nie skompilowaćCzy to oczekiwane zachowanie szablonu Haskell?
data A = A {
_b :: B
}
makeLenses ''A
type B = String
z komunikatem
Not in scope: type constructor or class B
i to robi:
type B = String
data A = A {
_b :: B
}
makeLenses ''A
Bez makeLenses
wszystko kompiluje grzywny.
Dlaczego nie mogę mieć deklaracji synonimów po makeLenses?