[Haskell-cafe] Derived Read instance for types with infix constructors (ghc 6.4.1)

Neil Mitchell ndmitchell at gmail.com
Fri Aug 25 19:43:20 EDT 2006


Hi

> *Main> show $ A `And` A
> "A And A"

For me, using GHCi 6.4.2 + Windows, I get:
"A `And` A"

Which all works perfectly.

For reference, Hugs writes out "And A A", and then parses it back again.

Hugs cannot cope with the "A `And` A" form with read, and GHC can't
cope with "And A A".

Thanks

Neil


More information about the Haskell-Cafe mailing list