| |||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
Synopsis | |||||||||||||||||
Types | |||||||||||||||||
newtype Control' a | |||||||||||||||||
| |||||||||||||||||
newtype Paragraph' a | |||||||||||||||||
| |||||||||||||||||
data Field' a | |||||||||||||||||
| |||||||||||||||||
type Control = Control' String | |||||||||||||||||
type Paragraph = Paragraph' String | |||||||||||||||||
type Field = Field' String | |||||||||||||||||
type ControlParser a = CharParser () a | |||||||||||||||||
class ControlFunctions a where | |||||||||||||||||
| |||||||||||||||||
Control File Parser | |||||||||||||||||
pControl :: ControlParser Control | |||||||||||||||||
A parser for debian control file. This parser handles control files that end without a newline as well as ones that have several blank lines at the end. It is very liberal and does not attempt validate the fields in any way. All trailing, leading, and folded whitespace is preserved in the field values. See stripWS. | |||||||||||||||||
Helper Functions | |||||||||||||||||
mergeControls :: [Control' a] -> Control' a | |||||||||||||||||
fieldValue :: ControlFunctions a => String -> Paragraph' a -> Maybe a | |||||||||||||||||
removeField :: Eq a => a -> Paragraph' a -> Paragraph' a | |||||||||||||||||
prependFields :: [Field' a] -> Paragraph' a -> Paragraph' a | |||||||||||||||||
appendFields :: [Field' a] -> Paragraph' a -> Paragraph' a | |||||||||||||||||
renameField :: Eq a => a -> a -> Paragraph' a -> Paragraph' a | |||||||||||||||||
modifyField :: Eq a => a -> (a -> a) -> Paragraph' a -> Paragraph' a | |||||||||||||||||
raiseFields :: Eq a => (a -> Bool) -> Paragraph' a -> Paragraph' a | |||||||||||||||||
Move selected fields to the beginning of a paragraph. | |||||||||||||||||
Produced by Haddock version 0.8 |