time-parsers-0.2: Parsers for types in `time`.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Time.TH

Description

Template Haskell extras for Time.

Synopsis

Documentation

mkUTCTime :: String -> Q Exp Source #

Make a UTCTime. Accepts the same strings as utcTime parser accepts.

t :: UTCTime
t = $(mkUTCTime "2014-05-12 00:02:03.456000Z")

mkDay :: String -> Q Exp Source #

Make a Day. Accepts the same strings as day parser accepts.

d :: Day
d = $(mkDay "2014-05-12")