[Haskell-cafe] Mono-whatever
David Feuer
david.feuer at gmail.com
Sun Nov 15 05:37:01 UTC 2015
Does any package define a type like this?
data X :: * -> k -> k -> * where
X :: b -> X b t t
So
instance (MonoFoldable b, Element b ~ t) => Foldable (X b t) where
foldMap f (X b) = ofoldMap f b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20151115/2a6c8925/attachment.html>
More information about the Haskell-Cafe
mailing list