From 4cfe37a21c58a8676642bfe5a813839fc33a0167 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Fri, 25 Aug 2006 09:32:26 +0000 Subject: [PATCH] add dependency on regex-compat --- compiler/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/compiler/Makefile b/compiler/Makefile index e82adc8..2a014b9 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -515,6 +515,16 @@ SRC_HC_OPTS += -package Cabal PKG_DEPENDS += Cabal endif +# We use Text.Regex which is in regex-compat with GHC 6.6+ +ifeq "$(bootstrapped)" "YES" +SRC_HC_OPTS += -package regex-compat +PKG_DEPENDS += regex-compat +else +ifeq "$(ghc_ge_605)" "YES" +SRC_HC_OPTS += -package regex-compat +endif +endif + ifeq "$(ghc_ge_603)" "YES" # Ignore lang, to avoid potential clash with the Generics module if # lang happens to be a dependency of some exposed package in the local -- 1.7.10.4