aeson-extra-0.4.1.0: 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 # 

Methods

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

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

Ord U Source # 

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 # 
Show U Source # 

Methods

showsPrec :: Int -> U -> ShowS #

show :: U -> String #

showList :: [U] -> ShowS #

ToJSON U Source # 
FromJSON U Source # 

newtype Z Source #

A type to parse ZonedTime

Since: aeson-extra-0.2.2.0

Constructors

Z 

Fields