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

2006-08-26 Thread Misha Aizatulin
Neil Mitchell wrote: *Main show $ A `And` A A And A For me, using GHCi 6.4.2 + Windows, I get: A `And` A I installed GHC 6.4.2 now (on Linux). It really does print A `And` A, but still doesn't read it. Would you agree that GHC doesn't conform to the Haskell Report here? In fact it seems

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

2006-08-26 Thread Jason Dagit
On 8/26/06, Misha Aizatulin [EMAIL PROTECTED] wrote: Neil Mitchell wrote: *Main show $ A `And` A A And A For me, using GHCi 6.4.2 + Windows, I get: A `And` A I installed GHC 6.4.2 now (on Linux). It really does print A `And` A, but still doesn't read it. Would you agree that GHC doesn't

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

2006-08-26 Thread Ian Lynagh
On Sat, Aug 26, 2006 at 10:15:17PM +0300, Misha Aizatulin wrote: Neil Mitchell wrote: *Main show $ A `And` A A And A For me, using GHCi 6.4.2 + Windows, I get: A `And` A I installed GHC 6.4.2 now (on Linux). It really does print A `And` A, but still doesn't read it. Would you

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

2006-08-26 Thread Misha Aizatulin
Jason Dagit wrote: Before you get too caught up in deriving Read, remember that in Haskell it's very easy to create your own custom parser. Assuming you have previous experience with happy or parsec you could probably have already created a custom parser with time you've spent debugging this

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

2006-08-26 Thread Misha Aizatulin
Ian Lynagh wrote: ghci on 6.4.2 Linux works for me: oops, works for me too - I forgot the type annotation when calling read :) So it's fine in 6.4.2 - sorry for the disturbance then! Cheers, Misha ___ Haskell-Cafe mailing list