#7016: Declarations after top-level splice are ignored
---------------------------------------+------------------------------------
Reporter: Oblosys | Owner:
Type: bug | Status: new
Priority: normal | Component: Template Haskell
Version: 7.4.2 | Keywords:
Os: MacOS X | Architecture: x86_64 (amd64)
Failure: GHC rejects valid program | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------------+------------------------------------
Declarations that appear after a top-level splice seem to be ignored
without any warning. In the attached Main, the identifier afterSplice is
not recognized:
{{{
Main.hs:6:11: Not in scope: `afterSplice'
}}}
The error disappears if the declaration of afterSplice is put before
dummySplice, or if the declaration for problem is removed (in which case
afterSplice is declared correctly, as can be seen with in ghci.)
I could track the problem back to at least ghc-7.0.4.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7016>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs