@@ -38,6 +38,13 @@ flag prof
3838 description: Compiling with profiling enabled
3939 default: False
4040
41+
42+flag old-locale
43+ description: If false then depend on time >= 1.5.
44+ .
45+ If true then depend on time < 1.5 together with old-locale.
46+ default: False
47+
4148Library
4249 Build-Depends: base >= 4.4 && < 5,
4350 binary >= 0.6.3 && < 0.8,
@@ -48,8 +55,6 @@ Library
4855 mtl >= 2.0 && < 2.3,
4956 data-accessor >= 0.2 && < 0.3,
5057 bytestring >= 0.9 && < 0.11,
51− old-locale >= 1.0 && < 1.1,
52− time >= 1.2 && < 1.5,
5358 random >= 1.0 && < 1.2,
5459 ghc-prim >= 0.2 && < 0.4,
5560 distributed-static >= 0.2 && < 0.4,
@@ -90,6 +95,10 @@ Library
9095 else
9196 Build-Depends: containers >= 0.4 && < 0.6,
9297 deepseq >= 1.3.0.1 && < 1.4
98+ if flag(old-locale)
99+ Build-Depends: time < 1.5, old-locale >= 1.0 && <1.1
100+ else
101+ Build-Depends: time >= 1.5
93102 if flag(th)
94103 if impl(ghc <= 7.4.2)
95104 Build-Depends: template-haskell >= 2.7 && < 2.8