Manuel M T Chakravarty wrote:
> Roman Leshchinskiy:
>
>> Manuel M T Chakravarty wrote:
>>
>>>
>>> I would like that, too.  (In fact, it is what I implemented at
>>> first.) Unfortunately, it doesn't work.  Language options are dynamic
>>> options, but -package is a weird intermediate between static and
>>> dynamic.  Hence, if you put ParallelArrays (as it is now called) into
>>> a LANGUAGE pragma, you won't get -fdph-par.
>>
>> But the -fdph-* flags themselves are dynamic. Is it the case that
>> putting {-# OPTIONS_GHC -fdph-par #-} into a module works but having {-#
>> LANGUAGE
>> ParallelArrays #-} imply it doesn't? That would be weird.
>>
>
> IIRC, {-# OPTIONS_GHC -fdph-par #-} doesn't work either.  GHC doesn't
> complain, but it also doesn't make the package available.

Urgh, that's bad! Perhaps fixing this is worth a try? Ian, Simon, how hard
would it be to make -package properly dynamic?

Alternatively, should we make -fdph-* static?

Roman




_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to