Dear list,
-- | Meta-information (constructor names, etc.)
instance (GToonbaar a, Constructor c) => GToonbaar (M1 i c a) where
-- | Sums: encode choice between constructors
instance (GToonbaar a, GToonbaar b) => GToonbaar (a :+: b) where
gtoon x = gtoon x
When I try to compile the above, ghc emits the following error:
No instance for (Constructor Main.D1MyData)
arising from a use of `Main.$gdmtoon'
Possible fix:
add an instance declaration for (Constructor Main.D1MyData)
In the expression: (Main.$gdmtoon)
In an equation for `toon': toon = (Main.$gdmtoon)
In the instance declaration for `Toonbaar MyData'