RE: happy and OPTIONS pragmas

8 Nov
2004
8 Nov
'04
9:19 a.m.
On 04 November 2004 18:21, Ian Lynagh wrote:
However, if a .y file starts:
{ {-# OPTIONS -w #-} -- Foo {-# OPTIONS -w #-} module Parser (parse) where }
then the generated .hs file starts:
-- parser produced by Happy Version 1.14 -- Foo {-# OPTIONS -w #-} module Parser (parse) where
so the pragma before my comment has been eaten and the 2 comments mean that ghc doesn't see the pragma, so gives me all the warnings anyway.
Can happy be changed so my pragma gets through please?
Thanks, will be fixed in the next Happy release (fix is in CVS). Cheers, Simon
7500
Age (days ago)
7500
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow