<p dir="ltr">That explains it, thank you! </p>
<br><div class="gmail_quote"><div dir="ltr">On Sun, Sep 13, 2015, 03:20 Brandon Allbery <<a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Sep 12, 2015 at 9:15 PM, Sevcsik András <span dir="ltr"><<a href="mailto:sevcsik@gmail.com" target="_blank">sevcsik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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?</blockquote></div><br></div></div><div dir="ltr"><div class="gmail_extra">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.</div><div class="gmail_extra">Try ":seti -XNoExtendedDefaultRules" and ask ghci again; it should produce an ambiguous type error.</div><div class="gmail_extra"><div><br></div>-- <br><div><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div dir="ltr">Minden jót,<div>Sevcsik András</div></div>