[GHC] #3003: Happy does not reject pragmas
GHC
ghc-devs at haskell.org
Sun Sep 28 22:20:35 UTC 2014
#3003: Happy does not reject pragmas
-------------------------------------+-------------------------------------
Reporter: SamB | Owner:
Type: bug | Status: closed
Priority: lowest | Milestone: 7.10.1
Component: Build | Version: 6.10.1
System | Keywords:
Resolution: invalid | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Changes (by thomie):
* status: new => closed
* failure: => None/Unknown
* resolution: => invalid
Comment:
Thank you for your report. This doesn't seem like a GHC problem (anymore).
To make sure Happy doesn't treat the pragma as a comment (it doesn't know
about pragmas, as you noticed), wrap it in an extra pair of curly braces,
so that it is treated as a [http://www.haskell.org/happy/doc/html/sec-
grammar-files.html module header].
{{{
{{-# OPTIONS_GHC -fno-warn-missing-signatures #-}} {- -*- Haskell -*- -}
%tokentype { Token }
%%
doc : { }
}}}
If you're still having problems with happy, please reraise it at the Happy
issue tracker: https://github.com/simonmar/happy/issues.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/3003#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list