--make and -make-is

Kristofer Johannisson krijo at cs.chalmers.se
Thu Mar 17 17:57:49 EST 2005


Running GHC 6.4 on Mac OS X 10.3.8.

I have problems using --make and -make-is, which seem to be related to 
bug "[ 935792 ] --make and -main-is don't work together". The shell 
transcript below illustrates the problem.

/ Kristofer Johannisson



prompt$ ls
A.hs
prompt$ more A.hs
module A where

main = putStrLn "hello world"

prompt$ ghc --make A.hs
Chasing modules from: A.hs
Compiling A                ( A.hs, A.o )
prompt$ ls
A.hi    A.hs    A.o
prompt$ ghc -main-is A --make A.hs
Chasing modules from: A.hs
Skipping  A                ( A.hs, A.o )
Linking ...
ld: Undefined symbols:
_ZCMain_main_closure
___stginit_ZCMain
prompt$ rm -f A.o
prompt$ ghc -main-is A --make A.hs
Chasing modules from: A.hs
Compiling A                ( A.hs, A.o )
Linking ...
prompt$ ./a.out
hello world




More information about the Glasgow-haskell-bugs mailing list