File tree Expand file tree Collapse file tree 4 files changed +3
-11
lines changed
src/Hackage/Security/Util Expand file tree Collapse file tree 4 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ executable example-client
43
43
directory >= 1.2 ,
44
44
filepath >= 1.2 ,
45
45
optparse-applicative >= 0.11 ,
46
- time >= 1.2 ,
46
+ time >= 1.5 ,
47
47
hackage-security >= 0.5 ,
48
48
hackage-security-HTTP,
49
49
hackage-security-curl,
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ executable hackage-repo-tool
68
68
bytestring >= 0.9 && < 0.13 ,
69
69
directory >= 1.2 && < 1.4 ,
70
70
filepath >= 1.3 && < 1.5 ,
71
- time >= 1.4 && < 1.13
71
+ time >= 1.5 && < 1.13
72
72
if !os(windows)
73
73
build-depends : unix >= 2.5 && < 2.9
74
74
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ library
128
128
-- functionality, 0.5.0 changes type of serialise
129
129
tar >= 0.5 && < 0.7 ,
130
130
template-haskell >= 2.7 && < 2.22 ,
131
- time >= 1.2 && < 1.13 ,
131
+ time >= 1.5 && < 1.13 ,
132
132
transformers >= 0.3 && < 0.7 ,
133
133
zlib >= 0.5 && < 0.7 ,
134
134
-- whatever versions are bundled with ghc:
Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ import Text.JSON.Canonical
30
30
import Network.URI
31
31
import qualified Data.Map as Map
32
32
33
- #if !MIN_VERSION_time(1,5,0)
34
- import System.Locale (defaultTimeLocale )
35
- #endif
36
-
37
33
import Hackage.Security.Util.Path
38
34
39
35
{- ------------------------------------------------------------------------------
@@ -137,10 +133,6 @@ instance ReportSchemaErrors m => FromJSON m UTCTime where
137
133
case parseTimeM False defaultTimeLocale " %FT%TZ" str of
138
134
Just time -> return time
139
135
Nothing -> expected " valid date-time string" (Just str)
140
- #if !MIN_VERSION_time(1,5,0)
141
- where
142
- parseTimeM _trim = parseTime
143
- #endif
144
136
145
137
instance ( Monad m
146
138
, ToObjectKey m k
You can’t perform that action at this time.
0 commit comments