[Haskell-cafe] [ANNOUNCE] hashable-generics
dag.odenhall at gmail.com
dag.odenhall at gmail.com
Wed Nov 7 19:59:34 CET 2012
On Tue, Nov 6, 2012 at 3:32 PM, Herbert Valerio Riedel <hvr at gnu.org> wrote:
> Clark Gaebel <cgaebel at uwaterloo.ca> writes:
> | There's no disadvantage to having the generic functionality in a
> | separate package, right?
>
Well for one it means you can't simply write
instance Class Type
but must write
instance Class Type where
forEveryMethod = genericForEveryMethod
...
and it wouldn't work with the planned generics feature that you could just
write
data Type deriving Class
I for one think conditional APIs are all OK; a form of "progressive
enhancement".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121107/0a20c299/attachment.htm>
More information about the Haskell-Cafe
mailing list