convertible 1.0.6 → 1.0.7
raw patch · 2 files changed
+14/−2 lines, 2 filesdep ~basedep ~timePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, time
API changes (from Hackage documentation)
- Data.Convertible.Instances.Time: instance Typeable NominalDiffTime
- Data.Convertible.Instances.Time: instance Typeable UTCTime
Files
- Data/Convertible/Instances/Time.hs +4/−0
- convertible.cabal +10/−2
Data/Convertible/Instances/Time.hs view
@@ -32,7 +32,9 @@ import Data.Time.Clock import Data.Time.Clock.POSIX import Data.Time.Calendar.OrdinalDate+#ifndef TIME_GT_113 import Data.Typeable+#endif import Data.Ratio import Foreign.C.Types @@ -58,11 +60,13 @@ ------------------------------ POSIX and UTC times +#ifndef TIME_GT_113 instance Typeable NominalDiffTime where typeOf _ = mkTypeName "NominalDiffTime" instance Typeable UTCTime where typeOf _ = mkTypeName "UTCTime"+#endif {- Covered under Real a instance Convertible Rational POSIXTime where
convertible.cabal view
@@ -1,5 +1,5 @@ Name: convertible-Version: 1.0.6+Version: 1.0.7 License: LGPL Maintainer: John Goerzen <jgoerzen@complete.org> Author: John Goerzen@@ -40,10 +40,18 @@ 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 && <4, old-time, time>=1.1.2.4 && <1.1.3,+ 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