[GHC] #4042: Order of declarations affects the correctness of
reported error.
GHC
cvs-ghc at haskell.org
Tue May 4 10:52:34 EDT 2010
#4042: Order of declarations affects the correctness of reported error.
----------------------------------+-----------------------------------------
Reporter: ChrisN | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (Parser) | Version: 6.12.2
Keywords: | Difficulty:
Os: Linux | Testcase:
Architecture: Unknown/Multiple | Failure: Incorrect warning at compile-time
----------------------------------+-----------------------------------------
Comment(by simonmar):
Oh, I just pressed submit and now I realise why this happens: it's because
a TH splice divides the module in two, so things before the splice cannot
refer to those afterwards.
Simon: is there anything we can do to make the error message more useful
here?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4042#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list