[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:19:19: error:
• Variable ‘a’ occurs more often
in the constraint ‘Monoid (m a)’ than in the instance head
(Use UndecidableInstances to permit this)
• In the stand-alone deriving instance for
‘forall m a. Monoid (m a) => Monoid (App m)’
|
19 | deriving instance forall m a. Monoid (m a) => Monoid (App m)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^