Copyright | Isaac Jones 2003-2005 |
---|---|
License | BSD3 |
Maintainer | cabal-devel@haskell.org |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This defines parsers for the .cabal
format
Synopsis
- readGenericPackageDescription :: HasCallStack => Verbosity -> Maybe (SymbolicPath CWD (Dir Pkg)) -> SymbolicPath Pkg File -> IO GenericPackageDescription
- readHookedBuildInfo :: Verbosity -> Maybe (SymbolicPath CWD (Dir Pkg)) -> SymbolicPath Pkg File -> IO HookedBuildInfo
- parseString :: (ByteString -> ParseResult a) -> Verbosity -> String -> ByteString -> IO a
Read and Parse files
readGenericPackageDescription :: HasCallStack => Verbosity -> Maybe (SymbolicPath CWD (Dir Pkg)) -> SymbolicPath Pkg File -> IO GenericPackageDescription Source #
Utility Parsing function
:: (ByteString -> ParseResult a) | File contents to final value parser |
-> Verbosity | Verbosity level |
-> String | File name |
-> ByteString | |
-> IO a |