Copyright | © 2014 Parnell Springmeyer |
---|---|
License | All Rights Reserved |
Maintainer | Parnell Springmeyer <parnell@digitalmentat.com> |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
Parsing combinators for org-mode timestamps; both active and inactive.
Synopsis
Documentation
parsePlannings :: Parser Text (HashMap PlanningKeyword Timestamp) Source #
Parse a planning line.
Plannings inhabit a heading section and are formatted as a keyword and a timestamp. There can be more than one, but they are all on the same line e.g:
DEADLINE: <2015-05-10 17:00> CLOSED: <2015-04-1612:00>
parseClock :: Parser Text Clock Source #
Parse a clock line.
A heading's section contains one line per clock entry. Clocks may have a timestamp, a duration, both, or neither e.g.:
CLOCK: [2014-12-10 Fri 2:30]--[2014-12-10 Fri 10:30] => 08:00
parseTimestamp :: Parser Text Timestamp Source #
Parse a timestamp.
Timestamps may be timepoints or timeranges, and they indicate whether they are active or closed by using angle or square brackets respectively.
Time ranges are formatted by infixing two timepoints with a double
hyphen, --
; or, by appending two hh:mm
timestamps together in a
single timepoint with one hyphen -
.
Each timepoint includes an optional repeater flag and an optional delay flag.