Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Pragma
- data FieldPragma
- data GlobalPragma
- parsePragma :: ByteString -> Either String (Maybe Pragma)
- stripWhitespace :: ByteString -> ByteString
- parsePragmas :: Comments -> ([String], [Pragma])
Documentation
data FieldPragma Source #
Pragmas applied per field
Instances
Show FieldPragma Source # | |
Defined in CabalFmt.Pragma showsPrec :: Int -> FieldPragma -> ShowS # show :: FieldPragma -> String # showList :: [FieldPragma] -> ShowS # |
data GlobalPragma Source #
Pragmas affecting global output
Instances
Show GlobalPragma Source # | |
Defined in CabalFmt.Pragma showsPrec :: Int -> GlobalPragma -> ShowS # show :: GlobalPragma -> String # showList :: [GlobalPragma] -> ShowS # |
parsePragma :: ByteString -> Either String (Maybe Pragma) Source #
Parse pragma from ByteString
.
An error (Left
) is reported only if input ByteString
starts with -- cabal-fmt:
.