cabal-fmt-0.1: Format .cabal files

Safe HaskellNone
LanguageHaskell2010

CabalFmt.Comments

Synopsis

Documentation

newtype Comments Source #

Constructors

Comments [ByteString] 
Instances
Show Comments Source # 
Instance details

Defined in CabalFmt.Comments

Semigroup Comments Source # 
Instance details

Defined in CabalFmt.Comments

Monoid Comments Source # 
Instance details

Defined in CabalFmt.Comments

attachComments Source #

Arguments

:: ByteString

source with comments

-> [Field Position]

parsed source fields

-> [Field Comments] 

overAnn :: forall a b. (FieldPath -> a -> b) -> [Field a] -> [Field b] Source #

data FieldPath Source #

Paths input paths. Essentially a list of offsets. Own type ofr safety.

Constructors

End 
Nth Int FieldPath 

findPath :: (a -> Position) -> Int -> [(FieldPath, a)] -> Maybe FieldPath Source #