packages feed

unix-time 0.0.1 → 0.0.2

raw patch · 2 files changed

+5/−4 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Data.UnixTime: UnixTime :: !CTime -> !Int32 -> UnixTime
+ Data.UnixTime: UnixTime :: {-# UNPACK #-} !CTime -> {-# UNPACK #-} !Int32 -> UnixTime
- Data.UnixTime: utMicroSeconds :: UnixTime -> !Int32
+ Data.UnixTime: utMicroSeconds :: UnixTime -> {-# UNPACK #-} !Int32
- Data.UnixTime: utSeconds :: UnixTime -> !CTime
+ Data.UnixTime: utSeconds :: UnixTime -> {-# UNPACK #-} !CTime

Files

Data/UnixTime/Types.hs view
@@ -8,13 +8,14 @@ -- | Data structure for Unix time. data UnixTime = UnixTime {   -- | Seconds from 1st Jan 1970-    utSeconds :: !CTime+    utSeconds :: {-# UNPACK #-} !CTime   -- | Micro seconds (i.e. 10^(-6))-  , utMicroSeconds :: !Int32+  , utMicroSeconds :: {-# UNPACK #-} !Int32   } deriving (Eq,Ord,Show)  -- | Format of the strptime()/strftime() style. type Format = ByteString  -- | Data structure for UnixTime diff.-data UnixDiffTime = UnixDiffTime !CTime !Int32 deriving (Eq,Ord,Show)+data UnixDiffTime = UnixDiffTime {-# UNPACK #-} !CTime+                                 {-# UNPACK #-} !Int32 deriving (Eq,Ord,Show)
unix-time.cabal view
@@ -1,5 +1,5 @@ Name:                   unix-time-Version:                0.0.1+Version:                0.0.2 Author:                 Kazu Yamamoto <kazu@iij.ad.jp> Maintainer:             Kazu Yamamoto <kazu@iij.ad.jp> License:                BSD3