cabal-fmt-0.1.12: Format .cabal files

Copyright | Oleg Grenrus
License | GPL-3.0-or-later
Safe Haskell | None
Language | Haskell2010

CabalFmt.Refactoring.Type

Description

Synopsis

- type FieldRefactoring = forall r (m :: Type -> Type). MonadCabalFmt r m => Field CommentsPragmas -> m (Maybe (Field CommentsPragmas))
- type CommentsPragmas = (Position, Comments, [FieldPragma])
- emptyCommentsPragmas :: CommentsPragmas
- rewriteFields :: MonadCabalFmt r m => (Field CommentsPragmas -> m (Maybe (Field CommentsPragmas))) -> [Field CommentsPragmas] -> m [Field CommentsPragmas]

# Documentation

type FieldRefactoring = forall r (m :: Type -> Type). MonadCabalFmt r m => Field CommentsPragmas -> m (Maybe (Field CommentsPragmas)) #

type CommentsPragmas = (Position, Comments, [FieldPragma]) #

emptyCommentsPragmas :: CommentsPragmas #

rewriteFields :: MonadCabalFmt r m => (Field CommentsPragmas -> m (Maybe (Field CommentsPragmas))) -> [Field CommentsPragmas] -> m [Field CommentsPragmas] #

A top-to-bottom rewrite of sections and fields