aelve / haskell-issues

An unofficial issue tracker for all things Haskell-related
18 stars 0 forks source link

Free member of a class :: forall k. (k -> Constraint) -> k #40

Open Gurkenglas opened 8 years ago

Gurkenglas commented 8 years ago

Foldable would map to a type constructor with one type parameter a and its result isomoprhic to Monoid m => (a -> m) -> m.

Functor, Traversable, Monad, Applicative and Alternative might as well map to () because they do not include a deconstructor.

Comonad would map to something isomorphic to data FreeComonad a = FreeComonad a (FreeComonad (FreeComonad a))

neongreen commented 8 years ago

Could you expand?