Skip to content

example of overlappable instance ? #1

@pcarbonn

Description

@pcarbonn

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions