HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehackage-db-2.1.3Haskell2010

Distribution.Hackage.DB.Utility

  • 4 values
  • Packagehackage-db-2.1.3
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceUtility.hs
valueparseIso8601 :: MonadFail m => String -> m UTCTime
#

Parse an UTC timestamp in extended ISO8601 format a standard UTCTime type. This function is useful to parse the "snapshot" identifier printed by cabal-install after a database update into a useable type. Combine with toEpochTime to obtain an EpochTime that can be passed to the Hackage DB reading code from this library.

Example1 expression
parseIso8601 "2018-12-21T13:17:40Z"2018-12-21 13:17:40 UTC