aeson-extra-0.4.1.2: Extra goodies for aeson

Copyright(C) 2015-2016 Oleg Grenrus
LicenseBSD3
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

Data.Aeson.Extra.Time

Description

Time tools

Synopsis

Documentation

newtype U Source #

A type to parse UTCTime

FromJSON instance accepts for example:

2015-09-07T08:16:40.807Z
2015-09-07 11:16:40.807 +03:00

Latter format is accepted by aeson staring from version 0.10.0.0.

See https://github.com/bos/aeson/blob/4667ef1029a373cf4510f7deca147c357c6d8947/Data/Aeson/Parser/Time.hs#L150

Since: aeson-extra-0.2.2.0

Constructors

U 

Fields

Instances
Eq U Source # 
Instance details

Defined in Data.Aeson.Extra.Time

Methods

(==) :: U -> U -> Bool #

(/=) :: U -> U -> Bool #

Ord U Source # 
Instance details

Defined in Data.Aeson.Extra.Time

Methods

compare :: U -> U -> Ordering #

(<) :: U -> U -> Bool #

(<=) :: U -> U -> Bool #

(>) :: U -> U -> Bool #

(>=) :: U -> U -> Bool #

max :: U -> U -> U #

min :: U -> U -> U #

Read U Source # 
Instance details

Defined in Data.Aeson.Extra.Time

Show U Source # 
Instance details

Defined in Data.Aeson.Extra.Time

Methods

showsPrec :: Int -> U -> ShowS #

show :: U -> String #

showList :: [U] -> ShowS #

ToJSON U Source # 
Instance details

Defined in Data.Aeson.Extra.Time

FromJSON U Source # 
Instance details

Defined in Data.Aeson.Extra.Time

newtype Z Source #

A type to parse ZonedTime

Since: aeson-extra-0.2.2.0

Constructors

Z 

Fields

Instances
Read Z Source # 
Instance details

Defined in Data.Aeson.Extra.Time

Show Z Source # 
Instance details

Defined in Data.Aeson.Extra.Time

Methods

showsPrec :: Int -> Z -> ShowS #

show :: Z -> String #

showList :: [Z] -> ShowS #

ToJSON Z Source # 
Instance details

Defined in Data.Aeson.Extra.Time

FromJSON Z Source # 
Instance details

Defined in Data.Aeson.Extra.Time