[project @ 2005-11-30 14:20:06 by simonpj]
authorsimonpj <unknown>
Wed, 30 Nov 2005 14:20:06 +0000 (14:20 +0000)
committersimonpj <unknown>
Wed, 30 Nov 2005 14:20:06 +0000 (14:20 +0000)
commit10dd2a6d050e4779782800184014b8738fadc679
tree3deda222a47efec235f5f976c93f2f03c3d90f04
parent741f70aa18baec781bd6c275e36f918b4dcdae75
[project @ 2005-11-30 14:20:06 by simonpj]
-----------------------------------------
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.
ghc/compiler/basicTypes/OccName.lhs
ghc/compiler/hsSyn/Convert.lhs
ghc/compiler/typecheck/TcSplice.lhs