HDBC 2.2.1 → 2.2.2
raw patch · 2 files changed
+12/−2 lines, 2 filesdep ~bytestringdep ~containersdep ~old-time
Dependency ranges changed: bytestring, containers, old-time, time
Files
- Database/HDBC/SqlValue.hs +2/−0
- HDBC.cabal +10/−2
Database/HDBC/SqlValue.hs view
@@ -582,6 +582,7 @@ safeConvert (SqlTimeDiff x) = return . fromIntegral $ x safeConvert y@(SqlNull) = quickError y +#ifndef TIME_GT_113 instance Typeable Day where typeOf _ = mkTypeName "Day" instance Typeable TimeOfDay where@@ -594,6 +595,7 @@ typeOf _ = mkTypeName "DiffTime" instance Typeable TimeZone where typeOf _ = mkTypeName "TimeZone"+#endif instance Typeable ST.ClockTime where typeOf _ = mkTypeName "ClockTime"
HDBC.cabal view
@@ -1,5 +1,5 @@ Name: HDBC-Version: 2.2.1+Version: 2.2.2 License: LGPL Maintainer: John Goerzen <jgoerzen@complete.org> Author: John Goerzen@@ -24,9 +24,17 @@ description: Build the executable to run unit tests default: False +flag time_gte_113+ description: time > 1.1.3 has defined some more instances so omit them here+ library if flag(splitBase)- Build-Depends: base>=3 && <5, old-time, time>=1.1.2.4 && <1.1.3, bytestring, containers, old-locale+ Build-Depends: base>=3 && <5, old-time, time>=1.1.2.4 && <=1.1.4, bytestring, containers, old-locale+ if flag(time_gte_113)+ Build-Depends: time>=1.1.3+ CPP-OPTIONS: -DTIME_GT_113+ else+ Build-Depends: time<1.1.3 else Build-Depends: base<3 Build-Depends: mtl, convertible >= 1.0.1, utf8-string