#3003: Happy does not reject pragmas
-----------------------------+----------------------------------------------
Reporter: SamB | Owner:
Type: bug | Status: new
Priority: normal | Component: Build System
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
I was about to report a bug in GHC's handling of -fno-warn-missing
signatures in pragmas, but wasn't able to reproduce it. Then I noticed it:
the problem was that the pragma was at the very top of a {{{.y}}} file,
where it was simply discarded, like this:
{{{
{-# OPTIONS_GHC -fno-warn-missing-signatures #-} {- -*- Haskell -*- -}
{
}}}
Happy should probably not just silently discard pragmas.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3003>
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