开发者

NonEmpty isn't a Comonad?

Why is the NonEmpty 开发者_Python百科list from the semigroups package not also an instance of the comonad class?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜