patch applied (ghc): Fix Trac #2358: 1-tuples in Template Haskell

Simon Peyton Jones simonpj at microsoft.com
Mon Jun 16 12:24:55 EDT 2008


Sat Jun 14 05:39:39 PDT 2008  simonpj at microsoft.com
  * Fix Trac #2358: 1-tuples in Template Haskell
  
  fons points out that TH was treating 1-tuples inconsistently.  Generally
  we make a 1-tuple into a no-op, so that (e) and e are the same.  But
  I'd forgotten to do this for types.
  
  It is possible to have a type with an un-saturated 1-tuple type
  constructor. That now elicits an error message when converting from
  TH syntax to Hs syntax
  

    M ./compiler/hsSyn/Convert.lhs -7 +11

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20080614123939-1287e-c93916fc3e84fd1ddf22085ee8d68cdf502548a3.gz



More information about the Cvs-ghc mailing list