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
_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to