Reputation: 11037
Why is the NonEmpty list from the semigroups package not also an instance of the comonad class?
Upvotes: 1
Views: 437
Reputation: 38893
It is. The instance is just defined in the comonad package, and not the semigroups package,
http://hackage.haskell.org/packages/archive/comonad/1.1.0/doc/html/Control-Comonad.html#t:Comonad
Upvotes: 6