Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type LineNumber = Maybe Int
- toNumber :: Int -> LineNumber -> Int
- data TextLine = TextLine {}
- isNumber :: LineNumber -> Bool
- class TextLineSource s where
- getTextLines :: s -> [TextLine]
- normalizeInputText :: String -> String
- lineAdd :: Num a => Maybe a -> Maybe a -> Maybe a
- linesStartingFrom :: LineNumber -> [LineNumber]
- hasNumber :: TextLine -> Bool
- makeDrawerLines :: LineNumber -> Int -> String -> [(String, String)] -> [TextLine]
- wrapLine :: Int -> TextLine -> [TextLine]
- prefixLine :: String -> TextLine -> TextLine
- tlPrint :: TextLineSource s => s -> IO ()
- tlFormat :: TextLineSource s => s -> String
- wrapStringVarLines :: [Int] -> String -> String
Documentation
type LineNumber = Maybe Int Source
Line numbers, where we can have an unattached root.
toNumber :: Int -> LineNumber -> Int Source
Raw data about each line of text. Lines with 'tlLineNum == None' are generated and don't exist within the Org file (yet).
isNumber :: LineNumber -> Bool Source
class TextLineSource s where Source
Implements an API for getting text lines. Useful for Org file generation or mutation.
getTextLines :: s -> [TextLine] Source
normalizeInputText :: String -> String Source
Normalizes out newlines to UNIX format. CR -> LF, CRLF -> LF
linesStartingFrom :: LineNumber -> [LineNumber] Source
makeDrawerLines :: LineNumber -> Int -> String -> [(String, String)] -> [TextLine] Source
prefixLine :: String -> TextLine -> TextLine Source
tlPrint :: TextLineSource s => s -> IO () Source
tlFormat :: TextLineSource s => s -> String Source
wrapStringVarLines :: [Int] -> String -> String Source