[Haskell-cafe] One-element tuple

AntC anthony_clayden at clear.net.nz
Tue Aug 20 14:19:48 CEST 2013


> adam vogt <vogt.adam <at> gmail.com> writes:
> 
> This preprocessor I just threw together doesn't seem to suffers from
> those issues <http://lpaste.net/91967>. This kind of approach probably
> might let you steal T(..) while still allowing `T (..)' to refer to
> whatever is the original, though I think that would require working
> with the messier Annotated syntax tree.
> 

wow! Adam, thank you. 

Even copes with multiple nested parens nested parens

    instance C ((a, b)) (((( c )))) ...

==> instance C ((a, b)) (OneT.OneTuple (OneT.OneTuple c)) ...


AntC






More information about the Haskell-Cafe mailing list