Skip to content

ttuegel/time-quote

Repository files navigation

time-quote: quasi-quotes for dates and times

Hackage version Build Status

time-quote provides quasi-quoters to parse dates and times according to ISO 8601 formats. By using quasi-quotes for literals, parse errors are found by the compiler.

Usage

To use quasi-quotes, place the pragma at the top of the source file,

{-# LANGUAGE QuasiQuotes #-}

If using GHCi, enter at the prompt

> :set -XQuasiQuotes

time-quote provides quasi-quoters for each type from the time library that defines an ISO8601 instance. Use the quasi-quoters to quote a literal date or time of the corresponding type; for example

[utcTime| 2018-05-25T15:36:27.416462897Z |]  -- :: UTCTime

Refer to the API documentation for a complete list of the available quasi-quoters and details of the formats accepted.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published