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

Simon Marlow simonmar at microsoft.com
Fri Mar 4 05:49:16 EST 2005


On 03 March 2005 22:18, Duncan Coutts wrote:


> In ghc 6.4 using -M mode it appears to be stricter when parsing the
> files looking for dependencies. In particular importing things with
> '#' suffixes eg:
> 
> import GHC.Really.Really.Internal.Dont.Touch (unsafeNastyThing#)
> 
> did not require the -fglasgow-exts option. In ghc 6.4 it does require
> this (which is not unreasonable).
> 
> However then it does not look at the {-# OPTIONS -fglasgow-exts #-}
> pragma at the top of the file.
> 
> I'll go fix my build system to always supply -fglasgow-exts when
> calculating dependencies.

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?

Cheers,
	Simon



More information about the Glasgow-haskell-bugs mailing list