diff options
author | simonpj@microsoft.com <unknown> | 2010-05-06 16:15:23 +0000 |
---|---|---|
committer | simonpj@microsoft.com <unknown> | 2010-05-06 16:15:23 +0000 |
commit | 302e2e29f2e1074bfba561e077a484dc4e1d15f6 (patch) | |
tree | a5fc708696c16bb2a7fa446d0691cc1af904713c /compiler/codeGen | |
parent | c7c2a6b5ce0ea2fa010b193d059d4705a1791c40 (diff) | |
download | haskell-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