#3953: Misleading error message when quasiquoter not in scopennnnnnnnnn
---------------------------------+------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.12.1 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
t.hs:
{{{
{-# LANGUAGE QuasiQuotes #-}
main = [$notDefinedHere| |]
}}}
ghc's output:
{{{
t.hs:2:7: Not in scope: `notDefinedHere'
t.hs:2:7:
GHC stage restriction: notDefinedHere
is used in a quasiquote, and must be imported, not defined locally
Failed, modules loaded: none.
}}}
The second message is wrong, since notDefinedHere isn't defined anywhere.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3953>
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