Skip to content

Missing instances for Cofree #2300

@kubukoz

Description

@kubukoz

https://hackage.haskell.org/package/free-4.1/docs/Control-Comonad-Cofree.html

There are some instances/derivations in the Haskell version of Cofree that might be useful for some people (I for one would welcome Eq):

  • Eq
  • Ord
  • Show
  • Alternative f => Monad (Cofree f) (needs tailRecM)
  • Distributive

Possibly more, but these are the ones I noticed missing now.

I'd love to take a shot at implementing them, if it sounds like a good idea :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions