packages feed

hcom 0.0.0.4 → 0.0.0.5

raw patch · 2 files changed

+11/−16 lines, 2 filesdep +timedep −old-timePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies added: time

Dependencies removed: old-time

API changes (from Hackage documentation)

- System.Win32.Com.Automation: clockTimeToDate :: ClockTime -> IO Date
+ System.Win32.Com.Automation: systemTimeToDate :: SystemTime -> IO Date

Files

System/Win32/Com/Automation.hs view
@@ -138,12 +138,12 @@       , freeSafeArray       , readSA       -      , clockTimeToDate    -- :: Time.ClockTime  -> IO Date+      , systemTimeToDate     ) where  import System.Win32.Com.HDirect.HDirect as HDirect import System.IO.Error ( ioeGetErrorString )-import System.Time     ( ClockTime(..) )+import Data.Time.Clock.System     ( SystemTime(..) )  import Data.Word ( Word8, Word16, Word32 ) import Data.Int  ( Int32, Int16, Int8, Int64 )@@ -823,16 +823,8 @@ inoutDate b           = (inDate b,resDate) outDate               = inoutDate defaultDate ------ clockTimeToDate relies on a non-standard implementation of Time,--- i.e., one which exports ClockTime non-abstractly.--- -clockTimeToDate :: ClockTime -> IO Date-clockTimeToDate (TOD secs _) -  | secs > fromIntegral (maxBound :: Int) ||-    secs < fromIntegral (minBound :: Int) = -    ioError (userError "Automation.clockTimeToDate: ClockTime out of range")-  | otherwise = primClockToDate (fromIntegral secs)+systemTimeToDate :: SystemTime -> IO Date+systemTimeToDate (MkSystemTime secs _) = primClockToDate (fromIntegral secs)  --Currency: 
hcom.cabal view
@@ -1,14 +1,17 @@ Name: hcom-version: 0.0.0.4+version: 0.0.0.5 Synopsis: Haskell COM support library Description: -   Supporting for writing COM\/Automation clients in Haskell, and for+   Support for writing COM\/Automation clients in Haskell, and for    packaging up your Haskell code behind a COM-callable veneer.    .    Some examples of how to use the package can be found at <http://haskell.forkio.com/com-examples>++   This is an updated fork of the `com` package. Cabal-version: >= 1.10 build-type: Simple Maintainer: Niklas Larsson <niklas@mm.st>+homepage: https://github.com/melted/hcom License: BSD3 License-file: LICENSE Category: FFI@@ -69,11 +72,11 @@            cbits/Registry.c            cbits/SafeArrayPrim.c - Extra-libraries: kernel32, user32, ole32, oleaut32, advapi32+ -- Extra-libraries: kernel32, user32, ole32, oleaut32, advapi32  GHC-Options: -fglasgow-exts  Default-Extensions: CPP - Build-depends: old-time,+ Build-depends: time,                 base >= 4,                 Win32 else