[Haskell-cafe] aeson-0.6.1.0 deriveJSON error
jims at stuttard.org
jims at stuttard.org
Sat Jan 26 16:23:48 CET 2013
Quoting Bas van Dijk <v.dijk.bas at gmail.com>:
> On 26 January 2013 14:47, <jims at stuttard.org> wrote:
>> ghc doesn't seem to be unifying deriveJSON (String->String)
>> parameter with id :: a -> a.
>
> It seems you're using aeson HEAD. Note that the deriveJSON from the
> released aeson-0.6.1.0 as the type:
Thanks for the instant help :) Now I know that
versions numbers on github don't necessarily get bumped
if there's a breaking change. I got confused when I found
the hackage documentation was different .
Cheers
> deriveJSON :: (String -> String) -> Name -> Q [Dec]
>
> But in aeson-HEAD it has the following type:
>
> deriveJSON :: Options -> Name -> Q [Dec]
>
> Cheers,
>
> Bas
>
More information about the Haskell-Cafe
mailing list