summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorsimonpj@microsoft.com <unknown>2010-05-06 16:15:23 +0000
committersimonpj@microsoft.com <unknown>2010-05-06 16:15:23 +0000
commit302e2e29f2e1074bfba561e077a484dc4e1d15f6 (patch)
treea5fc708696c16bb2a7fa446d0691cc1af904713c /compiler/codeGen
parentc7c2a6b5ce0ea2fa010b193d059d4705a1791c40 (diff)
downloadhaskell-302e2e29f2e1074bfba561e077a484dc4e1d15f6.tar.gz
Add a HsExplicitFlag to SpliceDecl, to improve Trac #4042
The issue here is that g :: A -> A f data A = A is treated as if you'd written $(f); that is the call of f is a top-level Template Haskell splice. This patch makes sure that we *first* check the -XTemplateHaskellFlag and bleat about a parse error if it's off. Othewise we get strange seeing "A is out of scope" errors.
Diffstat (limited to 'compiler/codeGen')
0 files changed, 0 insertions, 0 deletions