stan-0.1.2.1: Haskell STatic ANalyser
Copyright(c) 2020 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Stan.Cabal

Description

Functions to work with cabal files and cabal extension maps.

Synopsis

Documentation

createCabalExtensionsMap Source #

Arguments

:: Bool

Do print into terminal?

-> [FilePath]

.cabal files

-> [HieFile] 
-> IO (Map FilePath (Either ExtensionsError ParsedExtensions)) 

From a given path to cabal files and HieFiles create the map from modules (that are in .cabal file) to the resulting parsed extensions for each.

usedCabalFiles :: [FilePath] -> IO [FilePath] Source #

Gets the list of .cabal file paths that were used in the project.