[Haskell-cafe] [ANNOUNCE] hashable-generics
dag.odenhall at gmail.com
dag.odenhall at gmail.com
Sun Nov 4 17:46:52 CET 2012
On Sun, Nov 4, 2012 at 5:39 PM, Johan Tibell <johan.tibell at gmail.com> wrote:
> Couldn't we do it using GHC's default implementations based on
> signatures features, so we don't have to expose any new things in the
> API?
>
> We used that in unordered-containers like so:
>
> #ifdef GENERICS
> default parseRecord :: (Generic a, GFromRecord (Rep a)) => Record
> -> Parser a
> parseRecord r = to <$> gparseRecord r
> #endif
>
Exactly, that's what I meant with DefaultSignatures.
(I see that someone CC'd you here so maybe you missed the thread on cafe.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121104/26f0d16a/attachment.htm>
More information about the Haskell-Cafe
mailing list