tomland-1.3.3.1: Bidirectional TOML serialization
Copyright(c) 2018-2021 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
StabilityStable
PortabilityPortable
Safe HaskellNone
LanguageHaskell2010

Toml.Codec.Combinator.Time

Description

TOML-specific combinators for converting between TOML and Haskell date and time data types. TOML specification describes date and time primitives you can use in your configuration. tomland provides mapping of those primitives to types from the time library.

Haskell TypeTOMLTomlCodec
ZonedTimea = 2020-05-16T04:32:00ZzonedTime "a"
LocalTimea = 2020-05-16T04:32:00localTime "a"
Daya = 2020-05-16day "a"
TimeOfDaya = 04:32:00timeOfDay "a"

Since: 1.3.0.0

Synopsis

Documentation

zonedTime :: Key -> TomlCodec ZonedTime Source #

Codec for zoned time values.

Since: 0.5.0

localTime :: Key -> TomlCodec LocalTime Source #

Codec for local time values.

Since: 0.5.0

day :: Key -> TomlCodec Day Source #

Codec for day values.

Since: 0.5.0

timeOfDay :: Key -> TomlCodec TimeOfDay Source #

Codec for time of day values.

Since: 0.5.0