[Haskell-cafe] Derived Read instance for types with
infix constructors (ghc 6.4.1)
Misha Aizatulin
avatar at hot.ee
Sat Sep 9 11:36:36 EDT 2006
Daniel Fischer wrote:
> Another thing:
> Would it be a good idea to create derived Read instances that could parse
> both, "A `And` A" and "And A A" ?
> Since 6.4.2 parses the former and 6.2.2 parses the latter that should be
> possible, I believe (and both forms are accepted at the ghci prompt).
I made a Template Haskell function that does exactly that. I wrote
about it to the template-haskell list:
http://www.haskell.org/pipermail/template-haskell/2006-September/000587.html
Cheers,
Misha
More information about the Haskell-Cafe
mailing list