hie-bios
Safe HaskellSafe-Inferred
LanguageHaskell2010

HIE.Bios.Cradle.Cabal

Synopsis

Cabal Cradle interface

cabalAction :: ResolvedCradles a -> FilePath -> Maybe String -> LogAction IO (WithSeverity Log) -> CradleProjectConfig -> FilePath -> LoadStyle -> CradleLoadResultT IO ComponentOptions Source #

Main entry point into the cabal cradle invocation.

This function does a lot of work, supporting multiple cabal-install versions and different ways of obtaining the component options.

See Note [Finding ghc-options with cabal] for a detailed elaboration.

Locations

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

Find .cabal files in the given directory.

Might return multiple results,biosAction as we can not know in advance which one is important to the user.

Wrappers

withGhcWrapperTool :: LogAction IO (WithSeverity Log) -> GhcProc -> FilePath -> IO FilePath Source #

Generate a fake GHC that can be passed to cabal or stack when run with --interactive, it will print out its command-line arguments and exit

Argument processing

Exposed for tests