extensions-0.1.0.3: Parse Haskell Language Extensions
Copyright(c) 2020-2022 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Extensions.Cabal

Description

Functions to extract extensions from the .cabal files.

Synopsis

Documentation

parseCabalFileExtensions :: FilePath -> IO (Map FilePath ParsedExtensions) Source #

Parse default extensions from a .cabal file under given FilePath.

Throws:

parseCabalExtensions :: FilePath -> ByteString -> IO (Map FilePath ParsedExtensions) Source #

Parse default extensions from a .cabal file content. This function takes a path to a .cabal file. The path is only used for error message. Pass empty string, if you don't have a path to .cabal file.

Throws:

extractCabalExtensions :: GenericPackageDescription -> IO (Map FilePath ParsedExtensions) Source #

Extract Haskell Language extensions from a Cabal package description.

Bridge between Cabal and GHC extensions