diff options
author | panne <unknown> | 2004-02-10 18:38:45 +0000 |
---|---|---|
committer | panne <unknown> | 2004-02-10 18:38:45 +0000 |
commit | e7d7f2df9bfd33fa5761f846d23097822c15cf26 (patch) | |
tree | f57a474fecefebedb357bced2f413f891de938d4 /src | |
parent | 68e212d2b48044c0742fd492024d36f99d9b1c03 (diff) |
[haddock @ 2004-02-10 18:38:45 by panne]
Make Haddock link with the latest relocated monad transformer package
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile index f3534d6d..fb2b96ac 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,13 +3,20 @@ include $(TOP)/mk/boilerplate.mk INSTALLING=1 -ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi) +ghc_ge_504 := $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi) +ghc_ge_603 := $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi) -# Don't use any hslibs packages in GHC >= 5.04 +SRC_HC_OPTS += -fglasgow-exts -cpp + +# Use hierarchical libraries for GHC >= 5.04 ifeq "$(ghc_ge_504)" "YES" -SRC_HC_OPTS += -package network -fglasgow-exts -cpp +SRC_HC_OPTS += -package network +# Monad transformers live in their own package for GHC >= 6.3 +ifeq "$(ghc_ge_603)" "YES" +SRC_HC_OPTS += -package mtl +endif else -SRC_HC_OPTS += -package data -package text -package util -package net -fglasgow-exts -cpp +SRC_HC_OPTS += -package data -package text -package util -package net endif HS_PROG = haddock.bin |