/usr/share/doc/libghc-time-parsers-doc/html/time-parsers.txt is in libghc-time-parsers-doc 0.1.1.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Parsers for types in `time`.
--
-- Parsers for types in <a>time</a>.
@package time-parsers
@version 0.1.1.0
-- | Parsers for parsing dates and times.
module Data.Time.Parsers
-- | Parse a date of the form <tt>YYYY-MM-DD</tt>.
day :: DateParsing m => m Day
-- | Parse a date and time, of the form <tt>YYYY-MM-DD HH:MM:SS</tt>. The
-- space may be replaced with a <tt>T</tt>. The number of seconds may be
-- followed by a fractional component.
localTime :: DateParsing m => m LocalTime
-- | Parse a time of the form <tt>HH:MM:SS[.SSS]</tt>.
timeOfDay :: DateParsing m => m TimeOfDay
-- | Parse a time zone, and return <a>Nothing</a> if the offset from UTC is
-- zero. (This makes some speedups possible.)
timeZone :: DateParsing m => m (Maybe TimeZone)
-- | Behaves as <a>zonedTime</a>, but converts any time zone offset into a
-- UTC time.
utcTime :: DateParsing m => m UTCTime
-- | Parse a date with time zone info. Acceptable formats:
--
-- <pre>
-- YYYY-MM-DD HH:MM:SS Z
-- </pre>
--
-- The first space may instead be a <tt>T</tt>, and the second space is
-- optional. The <tt>Z</tt> represents UTC. The <tt>Z</tt> may be
-- replaced with a time zone offset of the form <tt>+0000</tt> or
-- <tt>-08:00</tt>, where the first two digits are hours, the <tt>:</tt>
-- is optional and the second two digits (also optional) are minutes.
zonedTime :: DateParsing m => m ZonedTime
type DateParsing m = (CharParsing m, LookAheadParsing m, Monad m)
-- | Template Haskell extras for <a>Time</a>.
module Data.Time.TH
-- | Make a <a>UTCTime</a>. Accepts the same strings as <a>utcTime</a>
-- parser accepts.
--
-- <pre>
-- t :: UTCTime
-- t = $(mkUTCTime "2014-05-12 00:02:03.456000Z")
-- </pre>
mkUTCTime :: String -> Q Exp
-- | Make a <a>Day</a>. Accepts the same strings as <a>day</a> parser
-- accepts.
--
-- <pre>
-- d :: Day
-- d = $(mkDay "2014-05-12")
-- </pre>
mkDay :: String -> Q Exp
|