happy and OPTIONS pragmas
Simon Marlow
simonmar at microsoft.com
Mon Nov 8 09:19:40 EST 2004
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
More information about the Glasgow-haskell-users
mailing list