#1108: -package and -idir in OPTIONS_GHC are ignored, but manual says that 
they're
dynamic
-----------------------------------+----------------------------------------
    Reporter:  [EMAIL PROTECTED]  |       Owner:         
        Type:  bug                 |      Status:  new    
    Priority:  normal              |   Milestone:         
   Component:  Compiler            |     Version:  6.6    
    Severity:  normal              |    Keywords:         
  Difficulty:  Unknown             |    Testcase:         
Architecture:  Unknown             |          Os:  Unknown
-----------------------------------+----------------------------------------
If I put a -package flag in OPTIONS_GHC, GHC ignores it. For example:

 test.hs:
 {{{
 {-# OPTIONS_GHC -package base #-}
 main = putStrLn "hello"
 }}}

 {{{
 $ ghc --make -hide-all-packages -o test test.hs
 [1 of 1] Compiling Main             ( test.hs, test.o )

 test.hs:1:0:
     Failed to load interface for `Prelude':
       it is a member of package base, which is hidden
 }}}


 It also ignores -idir:

 test.hs
 {{{
 {-# OPTIONS_GHC -itestdir #-}
 import Foo
 main = putStrLn "hello"
 }}}

 testdir/Foo.hs
 {{{
 module Foo where
 }}}

 {{{
 $ ghc --make test.hs

 test.hs:2:7:
     Could not find module `Foo':
       Use -v to see a list of the files searched for.
 }}}

 The manual says that both -package and -i are dynamic, and that dynamic
 flags can be set in OPTIONS_GHC.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1108>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to