[project @ 2005-11-12 21:41:12 by simonpj]
authorsimonpj <unknown>
Sat, 12 Nov 2005 21:41:12 +0000 (21:41 +0000)
committersimonpj <unknown>
Sat, 12 Nov 2005 21:41:12 +0000 (21:41 +0000)
commit87998bebdee5e97a19c52a2e33cd394cdf9c0c57
treec4811790cba6021125e38a2001b95c53c5666ab7
parent84b434c5c07ce864353cdf9780873555daad3b47
[project @ 2005-11-12 21:41:12 by simonpj]
Better TH -> HsSyn conversion

Merge to stable (attempt)

This commit monad-ises the TH syntax -> HS syntax conversion.
This means that error messages can be reported in a more civilised
way.  It also ensures that the entire structure is converted eagerly.
That means that any exceptions buried inside it are triggered
during conversion, and caught by the exception handler in TcSplice.
Before, they could be triggered later, and looked like comiler
crashes.
ghc/compiler/basicTypes/OccName.lhs
ghc/compiler/hsSyn/Convert.lhs
ghc/compiler/hsSyn/HsDecls.lhs
ghc/compiler/parser/Parser.y.pp
ghc/compiler/parser/ParserCore.y
ghc/compiler/parser/RdrHsSyn.lhs
ghc/compiler/typecheck/TcSplice.lhs