
9 Jun
2003
9 Jun
'03
7:13 a.m.
I am trying to get an {-# OPTIONS #-} pragma to appear in my Happy generated file, since I use warnings and want to disable them for this file. I'm putting the pragma first in the module header section of my Happy file.
My problem is that the generated file starts like this (the first pragma is generated by Happy):
{-# OPTIONS -fglasgow-exts -cpp #-} -- parser produced by Happy Version 1.13 {-# OPTIONS -fno-warn-unused-matches #-}
This means that GHC will only see the first one. Is there a way to make Happy put the pragma above the comment, or not produce the comment at all?
This bug was fixed by Sigbjorn Finne post-1.13. Compile up a copy of Happy from CVS to get the fix. Cheers, Simon