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

Modulehttp-date-0.0.11Haskell2010

Network.HTTP.Date

Fast parser and formatter for HTTP Date.

  • 1 type
  • 13 values
  • Packagehttp-date-0.0.11
  • Exports14
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceDate.hs
datadata HTTPDate
#

Data structure for HTTP Date. This value should be specified with defaultHTTPDate and its field labels.

Instances3Eq, Ord, Show
  • Eq HTTPDateDefined in http-date-0.0.11 · Network.HTTP.Date.Types
  • Ord HTTPDateDefined in http-date-0.0.11 · Network.HTTP.Date.Types
  • Show HTTPDateDefined in http-date-0.0.11 · Network.HTTP.Date.Types

Utility functions

2 declarations

Parsing HTTP Date. Currently only RFC1123 style is supported.

Example1 expression
parseHTTPDate "Tue, 15 Nov 1994 08:12:31 GMT"Just (HTTPDate {hdYear = 1994, hdMonth = 11, hdDay = 15, hdHour = 8, hdMinute = 12, hdSecond = 31, hdWkday = 2})

Generating HTTP Date in RFC1123 style.

Example1 expression
formatHTTPDate defaultHTTPDate {hdYear = 1994, hdMonth = 11, hdDay = 15, hdHour = 8, hdMinute = 12, hdSecond = 31, hdWkday = 2}"Tue, 15 Nov 1994 08:12:31 GMT"