cabal-install-parsers-0.2: Utilities to work with cabal-install files

LicenseGPL-3.0-or-later AND BSD-3-Clause
Safe HaskellNone
LanguageHaskell2010

Cabal.Parse

Description

.cabal and a like file parsing helpers.

Synopsis

Documentation

parseWith Source #

Arguments

:: ([Field Position] -> ParseResult a)

parse

-> FilePath

filename

-> ByteString

contents

-> Either ParseError a 

Parse the contents using provided parser from Field list.

This variant doesn't return any warnings in the successful case.

renderParseError :: ParseError -> String Source #

Render parse error highlighting the part of the input file.