[Haskell-cafe] {-# LANGUAGE DeriveApplicative #-} ?
Pavel Perikov
perikov at gmail.com
Thu May 6 03:55:36 EDT 2010
Hi, list!.
Now in 6.12.1 we have DeriveFunctor, DeriveFoldable and DeriveTraversable. This greatly simplifies the "reuse structure" style of programming. Some structure (not just _data_ structure) got captured in ADT and can be reused for various purposes.
Wouldn't it be nice to have the ability to derive Applicative as well? It shouldn't be more difficult than deriving Functor but will provide exciting possibilities. Just think about liftA2.
Please note that deriving Monad is quite different story and seem generally unfeasible.
Suggestions welcome.
P.
More information about the Haskell-Cafe
mailing list