[Haskell-beginners] How do ambigious types compile with Aeson
Sevcsik András
sevcsik at gmail.com
Sun Sep 13 01:59:05 UTC 2015
That explains it, thank you!
On Sun, Sep 13, 2015, 03:20 Brandon Allbery <allbery.b at gmail.com> wrote:
> On Sat, Sep 12, 2015 at 9:15 PM, Sevcsik András <sevcsik at gmail.com> wrote:
>
>> How it's decided what type should Aeson try to decode to? What type is
>> that gives me Nothing on whatever JSON input I give?
>
>
> ghci has ExtendedDefaultRules enabled, which means that many things will
> infer a type of () if one cannot otherwise be determined. This is not
> something Aeson has control over.
> Try ":seti -XNoExtendedDefaultRules" and ask ghci again; it should produce
> an ambiguous type error.
>
> --
> brandon s allbery kf8nh sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
--
Minden jót,
Sevcsik András
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150913/f1a248b4/attachment.html>
More information about the Beginners
mailing list