cabal-fmt-0.1.5.1: Format .cabal files
Safe HaskellNone
LanguageHaskell2010

CabalFmt.Pragma

Synopsis

Documentation

data Pragma Source #

Instances

Instances details
Show Pragma Source # 
Instance details

Defined in CabalFmt.Pragma

data FieldPragma Source #

Pragmas applied per field

Instances

Instances details
Show FieldPragma Source # 
Instance details

Defined in CabalFmt.Pragma

data GlobalPragma Source #

Pragmas affecting global output

Instances

Instances details
Show GlobalPragma Source # 
Instance details

Defined in CabalFmt.Pragma

parsePragma :: ByteString -> Either String (Maybe Pragma) Source #

Parse pragma from ByteString.

An error (Left) is reported only if input ByteString starts with -- cabal-fmt:.