cabal-gild-1.3.1.0: Formats package descriptions.
Safe HaskellSafe-Inferred
LanguageHaskell2010

CabalGild.Unstable.Action.StripBlanks

Synopsis

Documentation

run :: Applicative m => ([Field a], cs) -> m ([Field a], cs) Source #

High level wrapper around field that makes this action easier to compose with other actions.

field :: Field a -> Field a Source #

Strips blank space from the field recursively. In practice there should not be any leading or trailing blank space to begin with. However the legacy curly bracket syntax can introduce trailing blank space. For example with s { f : x } the field value will have a trailing space ("x ").

name :: Name a -> Name a Source #

Strips blank space from the field's name.

fieldLine :: FieldLine a -> FieldLine a Source #

Strips blank space from the field line.

sectionArg :: SectionArg a -> SectionArg a Source #

Strips blank space from the section argument.