orgmode-parse-0.0.2.0: A parser and writer for org-mode flavored documents.

Copyright© 2014 Parnell Springmeyer
LicenseAll Rights Reserved
MaintainerParnell Springmeyer <parnell@digitalmentat.com>
Stabilitystable
Safe HaskellNone
LanguageHaskell2010

Data.OrgMode.Parse.Attoparsec.PropertyDrawer

Description

Parsing combinators for org-mode entry property drawers.

Synopsis

Documentation

data Priority Source

Constructors

A 
B 
C 
Unknown 

newtype State Source

Constructors

State Text.Text 

Instances

newtype Keyword Source

Constructors

Keyword Text.Text 

newtype PropertyDrawer k v Source

Constructors

PropertyDrawer (HashMap k v) 

Instances

(Eq k, Eq v) => Eq (PropertyDrawer k v) 
(Show k, Show v) => Show (PropertyDrawer k v) 

data Timestamp Source

Constructors

Active LocalTime 
Inactive LocalTime 

newtype Open Source

Constructors

Open Char 

newtype Close Source

Constructors

Close Char 

drawer :: TP.Parser Text.Text (PropertyDrawer Text.Text Text.Text) Source

Parse a property drawer.

:PROPERTIES:
:DATE: [2014-12-14 11:00]
:NOTE: Something really crazy happened today!
:END:

property :: TP.Parser Text.Text (Text.Text, Text.Text) Source

Parse a property of a drawer.

Properties *must* be a `:KEY: value` pair, the key can be of any case and contain any characters except for newlines and colons (since they delimit the start and end of the key).