License | GPL-3.0-or-later |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Copyright: Oleg Grenrus
Synopsis
- type FieldRefactoring = forall r m. MonadCabalFmt r m => Field CommentsPragmas -> m (Maybe (Field CommentsPragmas))
- type CommentsPragmas = (Comments, [FieldPragma])
- rewriteFields :: MonadCabalFmt r m => (Field CommentsPragmas -> m (Maybe (Field CommentsPragmas))) -> [Field CommentsPragmas] -> m [Field CommentsPragmas]
Documentation
type FieldRefactoring = forall r m. MonadCabalFmt r m => Field CommentsPragmas -> m (Maybe (Field CommentsPragmas)) Source #
type CommentsPragmas = (Comments, [FieldPragma]) Source #
rewriteFields :: MonadCabalFmt r m => (Field CommentsPragmas -> m (Maybe (Field CommentsPragmas))) -> [Field CommentsPragmas] -> m [Field CommentsPragmas] Source #
A top-to-bottom rewrite of sections and fields