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)
- yamlConfig :: FilePath -> MaybeT IO FilePath
- 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
- readProcessWithOutputs :: Outputs -> LoggingFunction -> FilePath -> CreateProcess -> IO (ExitCode, [String], [String], [(OutputName, Maybe [String])])
- readProcessWithCwd :: FilePath -> FilePath -> [String] -> String -> IO (CradleLoadResult 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 #
readProcessWithOutputs Source #
:: Outputs | Names of the outputs produced by this process |
-> LoggingFunction | Output of the process is streamed into this function. |
-> FilePath | Working directory. Process is executed in this directory. |
-> CreateProcess | Parameters for the process to be executed. |
-> IO (ExitCode, [String], [String], [(OutputName, Maybe [String])]) |
Call a given process with temp files for the process to write to. * The process can discover the temp files paths by reading the environment. * The contents of the temp files are returned by this function, if any. * 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.
readProcessWithCwd :: FilePath -> FilePath -> [String] -> String -> IO (CradleLoadResult String) Source #
Wrapper around readCreateProcess
that sets the working directory
makeCradleResult :: (ExitCode, [String], FilePath, [String]) -> [FilePath] -> CradleLoadResult ComponentOptions Source #