<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 27, 2015 at 4:25 PM, Mike Meyer <span dir="ltr"><<a href="mailto:mwm@mired.org" target="_blank">mwm@mired.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, why won't read accept the same syntax as the REPL? I can see wanting Read and Show to be inverses of each other, though I think it's a bit misguided. But if we're going to be that strict about them being inverses, shouldn't we also insist that the READ eval print loop only accept what read will accept?</blockquote></div><br>Partly because ReadS isn't a very good parser, partly because of compliance with <a href="https://www.haskell.org/onlinereport/haskell2010/haskellch11.html#x18-18600011.4" target="_blank">https://www.haskell.org/onlinereport/haskell2010/haskellch11.html#x18-18600011.4</a>; notably:<ul style="color:rgb(0,0,0);font-family:'Liberation Sans';font-size:medium"><li>If the constructor is defined using record syntax, the derived <span style="font-family:monospace">Read</span> will parse only the record-syntax form, and furthermore, the fields must be given in the same order as the original declaration.</li></ul>-- <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>