tomland-1.3.0.0: Bidirectional TOML serialization
Copyright(c) 2018-2020 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
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 Type TOML TomlCodec
ZonedTime a = 2020-05-16T04:32:00Z zonedTime "a"
LocalTime a = 2020-05-16T04:32:00 localTime "a"
Day a = 2020-05-16 day "a"
TimeOfDay a = 04:32:00 timeOfDay "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