orgmode-0.1.0.1: Org Mode library for haskell

Safe HaskellNone
LanguageHaskell2010

Data.OrgMode.Text

Synopsis

Documentation

type LineNumber = Maybe Int Source

Line numbers, where we can have an unattached root.

data TextLine Source

Raw data about each line of text. Lines with 'tlLineNum == None' are generated and don't exist within the Org file (yet).

Constructors

TextLine 

Fields

tlIndent :: Int

how long of a whitespace (or asterisk, for Node) prefix is in tlText?

tlText :: String
 
tlLineNum :: LineNumber
 

class TextLineSource s where Source

Implements an API for getting text lines. Useful for Org file generation or mutation.

Methods

getTextLines :: s -> [TextLine] Source

normalizeInputText :: String -> String Source

Normalizes out newlines to UNIX format. CR -> LF, CRLF -> LF

lineAdd :: Num a => Maybe a -> Maybe a -> Maybe a Source