<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>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 class="gmail_signature"><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>