attoparsec-iso8601

Parsing of ISO 8601 dates, originally from aeson

https://github.com/haskell/aeson

Version on this page:1.1.0.1
LTS Haskell 23.0:1.1.1.0@rev:1
Stackage Nightly 2024-12-09:1.1.1.0@rev:1
Latest on Hackage:1.1.1.0@rev:1

See all snapshots attoparsec-iso8601 appears in

BSD-3-Clause licensed by Bryan O'Sullivan
Maintained by Adam Bergmark
This version can be pinned in stack with:attoparsec-iso8601-1.1.0.1@sha256:2c1258bbfd2546de075770364bdda1967266e7bcebebc075c35db448fa9f819e,1466

Module documentation for 1.1.0.1

Parsing of ISO 8601 dates.

This package is used to parse dates in aeson. It is split into a separate package to be shared by other projects that want to parse dates like aeson does.

For now, this project is located in the aeson repository and aeson itself uses the source of this package without pulling in the package as a dependency.

Stability

Since aeson depends on this package we want to be very careful about changing the format.

There may be breaking changes if we find that the format is incorrectly too lenient. We consider widening of the allowed input a non-breaking addition since all previously valid input will still parse correctly.

Changes

For the latest version of this document, please see https://github.com/bos/aeson/blob/master/attoparsec-iso8601/changelog.md.

1.1.0.0

  • Change parsers of types with year (Day, UTCTime) to require years with at least 4 digits.
  • Remove fast and developer package flags

1.0.2.1

  • Code (re)organization.
  • Avoid wildcard imports

1.0.2.0

  • Add month :: Parser Month and quarter :: Parser Quarter

1.0.1.0

  • Fixes handling of UTCTime wrt. leap seconds , thanks to Adam Schønemann