Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- findCradle :: FilePath -> IO (Maybe FilePath)
- loadCradle :: FilePath -> IO (Cradle Void)
- loadCustomCradle :: FromJSON b => (b -> Cradle a) -> FilePath -> IO (Cradle a)
- loadImplicitCradle :: Show a => FilePath -> IO (Cradle a)
- defaultCradle :: FilePath -> Cradle a
- isCabalCradle :: Cradle a -> Bool
- isStackCradle :: Cradle a -> Bool
- isDirectCradle :: Cradle a -> Bool
- isBiosCradle :: Cradle a -> Bool
- isNoneCradle :: Cradle a -> Bool
- isMultiCradle :: Cradle a -> Bool
- isDefaultCradle :: Cradle a -> Bool
- isOtherCradle :: Cradle a -> Bool
- getCradle :: (b -> Cradle a) -> (CradleConfig b, FilePath) -> Cradle a
- readProcessWithOutputFile :: LoggingFunction -> FilePath -> FilePath -> [String] -> IO (ExitCode, [String], [String], [String])
- makeCradleResult :: (ExitCode, [String], FilePath, [String]) -> [FilePath] -> CradleLoadResult ComponentOptions
Documentation
findCradle :: FilePath -> IO (Maybe FilePath) Source #
Given root/foo/bar.hs, return root/hie.yaml, or wherever the yaml file was found.
loadImplicitCradle :: Show a => FilePath -> IO (Cradle a) Source #
Given root/foo/bar.hs, load an implicit cradle
defaultCradle :: FilePath -> Cradle a Source #
Default cradle has no special options, not very useful for loading modules.
isCabalCradle :: Cradle a -> Bool Source #
isStackCradle :: Cradle a -> Bool Source #
isDirectCradle :: Cradle a -> Bool Source #
isBiosCradle :: Cradle a -> Bool Source #
isNoneCradle :: Cradle a -> Bool Source #
isMultiCradle :: Cradle a -> Bool Source #
isDefaultCradle :: Cradle a -> Bool Source #
isOtherCradle :: Cradle a -> Bool Source #
readProcessWithOutputFile Source #
:: LoggingFunction | Output of the process is streamed into this function. |
-> FilePath | Working directory. Process is executed in this directory. |
-> FilePath | Process to call. |
-> [String] | Arguments to the process. |
-> IO (ExitCode, [String], [String], [String]) |
Call a process with the given arguments.
* A special file is created for the process to write to, the process can discover the name of
the file by reading the HIE_BIOS_OUTPUT
environment variable. The contents of this file is
returned by the function.
* The logging function is called every time the process emits anything to stdout or stderr.
it can be used to report progress of the process to a user.
* The process is executed in the given directory.
* The path to the GHC version to use is supplied in the environment variable HIE_BIOS_GHC
.
Additionally, arguments to ghc are supplied via HIE_BIOS_GHC_ARGS
makeCradleResult :: (ExitCode, [String], FilePath, [String]) -> [FilePath] -> CradleLoadResult ComponentOptions Source #