HTTP 4000.2.23 → 4000.3.0
raw patch · 2 files changed
+6/−5 lines, 2 filesdep +timedep −old-timePVP ok
version bump matches the API change (PVP)
Dependencies added: time
Dependencies removed: old-time
API changes (from Hackage documentation)
- Network.Browser: BrowserEvent :: ClockTime -> RequestID -> String -> BrowserEventType -> BrowserEvent
+ Network.Browser: BrowserEvent :: UTCTime -> RequestID -> String -> BrowserEventType -> BrowserEvent
- Network.Browser: [browserTimestamp] :: BrowserEvent -> ClockTime
+ Network.Browser: [browserTimestamp] :: BrowserEvent -> UTCTime
Files
- HTTP.cabal +3/−2
- Network/Browser.hs +3/−3
HTTP.cabal view
@@ -1,5 +1,5 @@ Name: HTTP-Version: 4000.2.23+Version: 4000.3.0 Cabal-Version: >= 1.8 Build-type: Simple License: BSD3@@ -99,7 +99,8 @@ -- note the test harness constraints should be kept in sync with these -- where dependencies are shared Build-depends: base >= 4.3.0.0 && < 4.9, parsec >= 2.0 && < 3.2- Build-depends: array >= 0.3.0.2 && < 0.6, old-time >= 1.0.0.0 && < 1.2, bytestring >= 0.9.1.5 && < 0.11+ Build-depends: array >= 0.3.0.2 && < 0.6, bytestring >= 0.9.1.5 && < 0.11+ Build-depends: time >= 1.1.2.3 && < 1.6 Extensions: FlexibleInstances
Network/Browser.hs view
@@ -149,7 +149,7 @@ ( hSetBuffering, hPutStr, stdout, stdin, hGetChar , BufferMode(NoBuffering, LineBuffering) )-import System.Time ( ClockTime, getClockTime )+import Data.Time.Clock ( UTCTime, getCurrentTime ) ------------------------------------------------------------------@@ -638,7 +638,7 @@ -- at which they occurred. data BrowserEvent = BrowserEvent- { browserTimestamp :: ClockTime+ { browserTimestamp :: UTCTime , browserRequestID :: RequestID , browserRequestURI :: {-URI-}String , browserEventType :: BrowserEventType@@ -668,7 +668,7 @@ buildBrowserEvent :: BrowserEventType -> {-URI-}String -> RequestID -> IO BrowserEvent buildBrowserEvent bt uri reqID = do- ct <- getClockTime+ ct <- getCurrentTime return BrowserEvent { browserTimestamp = ct , browserRequestID = reqID