Copyright | © 2014 Parnell Springmeyer |
---|---|
License | All Rights Reserved |
Maintainer | Parnell Springmeyer <parnell@digitalmentat.com> |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
Types and utility functions for representing parsed org-mode documents.
Heading
An OrgMode heading.
toPriority :: Text -> Priority Source
Convert text into a Priority value.
The state of a heading (TODO, DONE, EVENT, etc...)
A keyword in a heading *not part of the property drawer*!
PropertyDrawer
newtype PropertyDrawer k v Source
The property drawer as an unordered HashMap.
PropertyDrawer (HashMap k v) |
(Eq k, Eq v) => Eq (PropertyDrawer k v) | |
(Show k, Show v) => Show (PropertyDrawer k v) |
Schedule & Timestamp
The "schedule" line. In OrgMode it must precede the heading
immediately and can contain a SCHEDULED
, DEADLINE
, or none. No
marker assumes the lonely timestamp is therefore an *appointment*.
- SCHEDULED* is the date & time you are going to start on something and the appointment is the date and time something occurs.
Recurring time intervals are also possible and are not parsed right
now but are kept in the recurring
field.
data ScheduleType Source
The schedule value, no value (or a failed parse) will result in simply the APPOINTMENT value.
An active or inactive timestamp as LocalTime
.
So we don't get confused when passing the opening and closing characters to the timestamp parser.