Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Pragma
- parsePragma :: ByteString -> Either String (Maybe Pragma)
- stripWhitespace :: ByteString -> ByteString
- parsePragmas :: Comments -> ([String], [Pragma])
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:
.