HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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