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

Extensions.Package

Description

Parse Haskell Language Extensions.

Synopsis

Package modules

getPackageExtentions Source #

Arguments

:: FilePath

Path to .cabal file.

-> IO (Map FilePath ExtensionsResult) 

By given path to .cabal file, analyse extensions for each Haskell module and return the corresponding Map with ExtensionsResults.

Throws:

getPackageExtentionsBySources Source #

Arguments

:: FilePath

Path to .cabal file.

-> Map FilePath ByteString

Path to modules with corresponding sources.

-> IO (Map FilePath ExtensionsResult) 

By given path to .cabal file and Map of sources of all Haskell modules, analyse extensions for each Haskell module and return the corresponding Map with ExtensionsResults.

Single module

getModuleAndCabalExtentions Source #

Arguments

:: FilePath

Path to .cabal file.

-> FilePath

Path to Haskell module file.

-> IO (Either ExtensionsError CabalAndModuleExtensions) 

By given path to .cabal file and path to Haskell module of the corresponding package, analyse and return extensions for the given module separately from .cabal file and from the module itself.

getModuleExtentions Source #

Arguments

:: FilePath

Path to .cabal file.

-> FilePath

Path to Haskell module file.

-> IO ExtensionsResult 

By given path to .cabal file and path to Haskell module of the corresponding package, analyse and return summary set of extensions for the given module.

getModuleAndCabalExtentionsBySource Source #

Arguments

:: FilePath

Maybe path to .cabal file.

-> FilePath

Path to the module's source (needed for matching with cabal file).

-> ByteString

Source of a Haskell module file.

-> IO (Either ExtensionsError CabalAndModuleExtensions) 

By given path to .cabal file and path to Haskell module of the corresponding package, analyse and return extensions extensions for the given module separately from .cabal file and from the module itself.

getModuleExtentionsBySource Source #

Arguments

:: FilePath

Maybe path to .cabal file.

-> FilePath

Path to the module's source (needed for matching with cabal file).

-> ByteString

Source of a Haskell module file.

-> IO ExtensionsResult 

By given path to .cabal file and path to Haskell module of the corresponding package, analyse and return combined set of extensions for the given module.