cabal-fmt-0.1.1: Format .cabal files

Safe HaskellNone
LanguageHaskell2010

CabalFmt.Pragma

Synopsis

Documentation

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

Parse pragma from ByteString.

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