haskell/HTTP

Remove dep on old-time?

gbaz opened this issue · 4 comments

gbaz commented

Is it possible to stop relying on old-time in HTTP? It would be nice to stop doing so to start flushing the old-* libraries out of the core ecosystem.

Sounds sensible. Is there a minimum sensible version of GHC for that? Currently HTTP supports GHC 7.0+, but I'm happy to bump that up a bit for a good reason.

gbaz commented

It looks like GHC 7.0.1 shipped with time 1.2.0.3. (http://downloads.haskell.org/~ghc/7.0.1/docs/html/libraries/time-1.2.0.3/Data-Time.html) So I'd imagine that any code ported from old-time to time could use anything already available there -- I think it was pretty stable by that point already?

OK, so looks like this should be pretty simple - there's one use of System.Time in Network.Browser, and I think it can simply be replaced by UTCTime.

It will require a major version bump as it's part of an exposed type (BrowserEvent), though I'm not sure if anyone actually uses this.

Resolved in HTTP 4000.3.0