Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- run :: Applicative m => ([Field (p, [Comment p])], [Comment p]) -> m ([Field [Comment ()]], [Comment ()])
- fields :: [Field (p, [Comment p])] -> [Field [Comment ()]]
- field :: Field (p, [Comment p]) -> Field [Comment ()]
- name :: Name (p, [Comment p]) -> Name [Comment ()]
- fieldLines :: [FieldLine (p, [Comment p])] -> [FieldLine [Comment ()]]
- fieldLine :: FieldLine (p, [Comment p]) -> FieldLine [Comment ()]
- sectionArgs :: [SectionArg (p, [Comment p])] -> [SectionArg [Comment ()]]
- sectionArg :: SectionArg (p, [Comment p]) -> SectionArg [Comment ()]
- comments :: [Comment p] -> [Comment ()]
- comment :: Comment p -> Comment ()
Documentation
run :: Applicative m => ([Field (p, [Comment p])], [Comment p]) -> m ([Field [Comment ()]], [Comment ()]) Source #
A wrapper around fields
to allow this to be composed with other actions.
fields :: [Field (p, [Comment p])] -> [Field [Comment ()]] Source #
Removes the positions from some fields and their comments. This is useful for two reasons: the annotations become simpler, and it's clear that the positions won't be used for anything else.
field :: Field (p, [Comment p]) -> Field [Comment ()] Source #
Removes the positions from a field and its comments.
name :: Name (p, [Comment p]) -> Name [Comment ()] Source #
Removes the positions from a name and its comments.
fieldLines :: [FieldLine (p, [Comment p])] -> [FieldLine [Comment ()]] Source #
Removes the positions from field lines and their comments.
fieldLine :: FieldLine (p, [Comment p]) -> FieldLine [Comment ()] Source #
Removes the positions from a field line and its comments.
sectionArgs :: [SectionArg (p, [Comment p])] -> [SectionArg [Comment ()]] Source #
Removes the positions from some section arguments and their comments.
sectionArg :: SectionArg (p, [Comment p]) -> SectionArg [Comment ()] Source #
Removes the positions from a section argument and its comments.