Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Cli.Programs
Documentation
class CompilerBackend b where Source #
Methods
syncCxxCommand :: (MonadIO m, CollectErrorsM m) => b -> CxxCommand -> m FilePath Source #
asyncCxxCommand :: (MonadIO m, CollectErrorsM m) => b -> CxxCommand -> m (AsyncWait b) Source #
waitCxxCommand :: (MonadIO m, CollectErrorsM m) => b -> AsyncWait b -> m (Either (AsyncWait b) FilePath) Source #
runTestCommand :: (MonadIO m, CollectErrorsM m) => b -> TestCommand -> m TestCommandResult Source #
getCompilerHash :: (MonadIO m, CollectErrorsM m) => b -> m VersionHash Source #
Instances
CompilerBackend Backend Source # | |
Defined in Config.LocalConfig Methods syncCxxCommand :: (MonadIO m, CollectErrorsM m) => Backend -> CxxCommand -> m FilePath Source # asyncCxxCommand :: (MonadIO m, CollectErrorsM m) => Backend -> CxxCommand -> m (AsyncWait Backend) Source # waitCxxCommand :: (MonadIO m, CollectErrorsM m) => Backend -> AsyncWait Backend -> m (Either (AsyncWait Backend) FilePath) Source # runTestCommand :: (MonadIO m, CollectErrorsM m) => Backend -> TestCommand -> m TestCommandResult Source # getCompilerHash :: (MonadIO m, CollectErrorsM m) => Backend -> m VersionHash Source # |
data CxxCommand Source #
Constructors
CompileToObject | |
CompileToShared | |
Fields
| |
CompileToBinary | |
Instances
Show CxxCommand Source # | |
Defined in Cli.Programs Methods showsPrec :: Int -> CxxCommand -> ShowS # show :: CxxCommand -> String # showList :: [CxxCommand] -> ShowS # |
data TestCommand Source #
Instances
Show TestCommand Source # | |
Defined in Cli.Programs Methods showsPrec :: Int -> TestCommand -> ShowS # show :: TestCommand -> String # showList :: [TestCommand] -> ShowS # |
data TestCommandResult Source #
Constructors
TestCommandResult | |
Instances
Show TestCommandResult Source # | |
Defined in Cli.Programs Methods showsPrec :: Int -> TestCommandResult -> ShowS # show :: TestCommandResult -> String # showList :: [TestCommandResult] -> ShowS # |
newtype VersionHash Source #
Constructors
VersionHash String |
Instances
Show VersionHash Source # | |
Defined in Cli.Programs Methods showsPrec :: Int -> VersionHash -> ShowS # show :: VersionHash -> String # showList :: [VersionHash] -> ShowS # | |
Eq VersionHash Source # | |
Defined in Cli.Programs |
parallelProcess :: (CompilerBackend b, MonadIO m, CollectErrorsM m) => b -> Int -> [(m (AsyncWait b), a)] -> m [(FilePath, a)] Source #