user2023370
user2023370

Reputation: 11037

NonEmpty isn't a Comonad?

Why is the NonEmpty list from the semigroups package not also an instance of the comonad class?

Upvotes: 1

Views: 437

Answers (1)

sclv
sclv

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

Related Questions