ghc-6.4 -M does not respect {-# OPTIONS -fglasgow-exts #-} pragma

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Fri Mar 4 09:36:59 EST 2005


On Fri, 2005-03-04 at 10:49 +0000, Simon Marlow wrote:
> > However then it does not look at the {-# OPTIONS -fglasgow-exts #-}
> > pragma at the top of the file.

> Strange... it works for me.  ghc -M now uses the same machinery as
> --make when calculating the dependency graph, so {-# OPTIONS #-} should
> work as normal.
> 
> Can you send us the source file that fails?

Ah, you're quite right. The reason the option is not recognised is
because there is a comment on the same line:

{-# OPTIONS -fglasgow-exts #-}  --due to use of unsafeCoerce#

When I strip off the comment it works.

I didn't notice it was not working previously since the Makefile
specifies -fglasgow-exts when compiling the file (but not when
calculating deps).

Duncan




More information about the Glasgow-haskell-bugs mailing list