prune-juice-0.7: Prune unused Haskell dependencies
Safe HaskellNone
LanguageHaskell2010

Data.Prune.Section.Parser

Description

 
Synopsis

Documentation

indentedLine :: Int -> Parser String Source #

Parse an indented line with indentedLine numSpaces, failing if the line isn't indented to numSpaces.

indentedLines :: Int -> Parser [String] Source #

Parse many indented lines with indentedLines numSpaces, traversing empty lines until the line isn't indented to numSpaces.

renderCabalSections :: [Section] -> String Source #

Render sections. parseCabalSections . renderCabalSections should be equivalent to Right.

readCabalSections :: FilePath -> IO (Either String [Section]) Source #

Read sections from a file using parseCabalSections.

writeCabalSections :: FilePath -> [Section] -> IO () Source #

Write sections to a file using renderCabalSections.