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

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Thu Mar 3 17:17:41 EST 2005


Hi,

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.

Duncan




More information about the Glasgow-haskell-bugs mailing list