I created a very simple program:
module CompileTest(main) where
main = putStrLn "Hello, World!"
When I try to compile it using ghc CompileTest.hs
I get:
/usr/lib/ghc-6.12.1/libHSrtsmain.a(Main.o): In function `main':
(.text+0x10): undefined reference to `ZCMain_main_closure'
/usr/lib/ghc-6.12.1/libHSrtsmain.a(Main.o): In function `main':
(.text+0x18): undefined reference to `__stginit_ZCMain'
Does anyone know what this is? I'm not doing anything complicated. And it works fine in GHCi.