problem compiling OpenGL/.../Extensions.hs with GHC version 6.0

Sven Panne Sven.Panne at informatik.uni-muenchen.de
Mon Jun 2 10:49:17 EDT 2003


Simon Marlow wrote:
 > AFAICT, GHC on Windows has always done this quoting, the change was
 > to make GHC on Unix do it too. [...]

Well, after some investigation of GHC's history, I came to the
conclusion that quoting for -D and -U options on *nix has been a
special case in pre-6.0 GHCs: -DFOO=BAR was passed as -D'FOO=BAR', but
as "-DFOO=BAR" on WinDoze. The latter done on all platforms now, which
is not very nice, but at least consistent. So I surrender and I will
adapt my Makefile (as soon as I have a new GHC ready).

Text substitution as a parameter passing mechanisms REALLY sucks...

Cheers,
    S.





More information about the Glasgow-haskell-bugs mailing list