cvs commit: fptools/ghc/compiler/basicTypes OccName.lhs fptools/ghc/compiler/hsSyn Convert.lhs fptools/ghc/compiler/typecheck TcSplice.lhs

Simon Peyton Jones simonpj at microsoft.com
Wed Nov 30 09:20:06 EST 2005


simonpj     2005/11/30 06:20:06 PST

  Modified files:
    ghc/compiler/basicTypes OccName.lhs 
    ghc/compiler/hsSyn   Convert.lhs 
    ghc/compiler/typecheck TcSplice.lhs 
  Log:
  	-----------------------------------------
  	Fix 'mkName' operator in Template Haskell
  	so that it handles built-in syntax
  	-----------------------------------------
  
  	Merge to stable branch
  
  The 'mkName' function in Template Haskell wasn't dealing correctly with
  built-in syntax.  The parser generates Exact RdrNames for built-in syntax
  operators, such as ':' and '[]'; and hence so should Convert.
  
  At the same time I'm now generating a better error message in TH when
  you use a constructor as a variable or vice versa.
  
  Revision  Changes    Path
  1.67      +17 -7     fptools/ghc/compiler/basicTypes/OccName.lhs
  1.69      +63 -19    fptools/ghc/compiler/hsSyn/Convert.lhs
  1.66      +5 -5      fptools/ghc/compiler/typecheck/TcSplice.lhs


More information about the Cvs-ghc mailing list