The tutorial says:
These situations can be handled with the type class approach just discussed with overlappable instances.
Could you give an example for those of us not expert in type hackery ? I have some difficulty writing the Overlappable instance. A draft would be something like:
instance {-# OVERLAPPABLE #-} ( OpenAlg r ?? ?? (OpenADT r)) => OverList a a' r ?? where
fmapList' _ ?? = ??
Thanks !
The tutorial says:
Could you give an example for those of us not expert in type hackery ? I have some difficulty writing the Overlappable instance. A draft would be something like:
Thanks !