Recover gracefully from a Template Haskell programmers error
authorsimonpj@microsoft.com <unknown>
Fri, 14 Apr 2006 11:58:31 +0000 (11:58 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 14 Apr 2006 11:58:31 +0000 (11:58 +0000)
commit658e99a85870d02c734d78e488e963da107133ff
tree1bfeb2f5058489e92ea3bf4df214d9cbdddd9a6e
parent284e6b500dd92bb132845c39ec1a9d8ef78c009a
Recover gracefully from a Template Haskell programmers error

If a TH programmer uses a type constructor as a data constructor,
GHC simply crashed.  This commit makes it report the error in a
graceful way.
compiler/basicTypes/RdrName.lhs
compiler/typecheck/TcEnv.lhs
compiler/typecheck/TcExpr.lhs