[commit: packages/time] master: Use configurations to allow building with ghc-6.6, 6.8 (eff99ca)
git at git.haskell.org
git at git.haskell.org
Sun Dec 20 07:51:48 UTC 2015
Repository : ssh://git@git.haskell.org/time
On branch : master
Link : http://git.haskell.org/packages/time.git/commitdiff/eff99ca5fd0da086e3fcb75203ff3d76fc4f2d00
>---------------------------------------------------------------
commit eff99ca5fd0da086e3fcb75203ff3d76fc4f2d00
Author: Duncan Coutts <duncan at haskell.org>
Date: Thu Oct 18 10:38:27 2007 -0700
Use configurations to allow building with ghc-6.6, 6.8
Specify build-type: Custom since there is test code in Setup.hs
darcs-hash:20071018173827-adfee-6a7bc524d8bade80a2276c809006e48faeb701dd
>---------------------------------------------------------------
eff99ca5fd0da086e3fcb75203ff3d76fc4f2d00
time.cabal | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/time.cabal b/time.cabal
index f9c0c17..e2c477e 100644
--- a/time.cabal
+++ b/time.cabal
@@ -8,6 +8,8 @@ Maintainer: <ashley at semantic.org>
Homepage: http://semantic.org/TimeLib/
Synopsis: time library
Category:
+Build-Type: Custom
+Cabal-Version: >=1.2
Extra-Source-Files:
aclocal.m4 configure.ac configure
@@ -16,11 +18,16 @@ Extra-Tmp-Files:
config.log config.status autom4te.cache
include/HsTimeConfig.h
+Flag split-base
+
Library {
- Build-Depends: base, old-locale
- if os(mingw32) {
+ Build-Depends: base >= 2
+ if flag(split-base)
+ Build-Depends: base >= 3, old-locale
+ else
+ Build-Depends: base < 3
+ if os(windows)
Build-Depends: Win32
- }
Exposed-Modules:
Data.Time.Calendar,
Data.Time.Calendar.MonthDay,
More information about the ghc-commits
mailing list