úÎÅQ     © 2014 Parnell SpringmeyerAll Rights Reserved/Parnell Springmeyer <parnell@digitalmentat.com>stable Safe-Inferred    © 2014 Parnell SpringmeyerAll Rights Reserved/Parnell Springmeyer <parnell@digitalmentat.com>stableNoneParse an org-mode heading.EParse the asterisk indicated heading level until a space is reached.Parse the priority indicator.LIf anything but these priority indicators are used the parser will fail: `[A]`, `[ B]`, `[#C]`.Parse the state indicator {TODO | DOING | DONE}.fThese can be custom so we're parsing the state identifier as Text but wrapped with the State newtype.Title parser with alternative.ƒThis function tries to parse a title with a keyword and if it fails it then attempts to parse everything till the end of the line.(Try to parse a title that may have keys.-This function recurs for every occurrence of :N and tries to parse it as a keyword. If the keyword parser fails we fold the :[ onto our title result. If it succeeds then we return the title *and the parsed keyword*.Parse a heading keyword.$NOTE: this is meant to be used with ™ since it cannot fail and we use it recursively in that function to determine whether we are hitting a keyword chunk or not (and saving it if we do!).FIt is not exported because it is not meant to be used outside of the  function.Parse a heading keyword.You can use this with  and  to get a list keywords: 4keys <- many' headingKeyword return $ catMaybes keys    © 2014 Parnell SpringmeyerAll Rights Reserved/Parnell Springmeyer <parnell@digitalmentat.com>stableNone        !orgmode-parse-0.0.0.1&Data.OrgMode.Parse.Attoparsec.HeadingsData.OrgMode.Parse.InternalData.OrgMode.ParseKeywordStatePriorityUnknownCBAHeadinglevelprioritystatetitlekeywords toPriorityheading headingLevelheadingPriority headingTitleheadingKeyword headingState takeTitleKeysheadingKeyword'attoparsec-0.12.1.2Data.Attoparsec.Combinatormany'base Data.Maybe catMaybes takeTitleEnd