
Am Sonntag, 24. Februar 2008 01:54 schrieb Matthew Bentham:
Hi all,
I'm not too experienced with ghc or Haskell, so I wanted to check here rather than submitting a bug:
It's probably the base-split. In 6.6.1, Text.PrettyPrint was in the base package, in 6.8.2 it's in the pretty package. Try compiling with -package pretty, or better still, with --make: /path/to/ghc --make test or /path/to/ghc -o test.exe test.hs -package pretty If that's not it, you might have a real problem. Cheers, Daniel
$ cat test.hs import Text.PrettyPrint main = print "foo" $ /c/ghc/ghc-6.6.1/bin/ghc test.hs $ ./main.exe "foo" $ /c/ghc/ghc-6.8.2/bin/ghc test.hs test.o(.text+0x217):fake: undefined reference to `__stginit_prettyzm1zi0zi0zi0_TextziPrettyPrint_' $
I'm using Vista64. The session above was copied from a cygwin shell, but it does the same in an msys shell or cmd.exe. Both versions of ghc were installed using the official binary distribution.
I'm having trouble compiling ghc from source at the moment (I think there's another issue I'm hitting with the 6.6.1 build, haven't tracked it down yet) so I can't debug what is going wrong myself.
I'd appreciate people's advice about what to do. Should my test program work or am I doing something wrong? Maybe there are some optional libraries to install that I have missed, that used to be core?