GHC.Generics and instances of Functor, Applicative, etc?
Conal Elliott
conal at conal.net
Wed Jan 13 01:28:01 UTC 2016
I'm using GHC.Generics and have noticed that the data types defined there
don't have instances of the standard classes (at least not defined in that
module), such as Functor, Applicative, Foldable and Traversable. It'd be
very useful to be able to rely on such instances, so that one can define
instances of custom types via instances of the generic types. (Hopefully,
the compiler can remove most or all conversion overhead) Is there any
reason not to add these generic instances?
-- Conal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20160112/5ff0272b/attachment.html>
More information about the Libraries
mailing list