Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- getCompilerVersion :: (HasProcessContext env, HasLogFunc env) => WhichCompiler -> Path Abs File -> RIO env ActualCompiler
- markInstalled :: (MonadIO m, MonadThrow m) => Path Abs Dir -> Tool -> m ()
- unmarkInstalled :: MonadIO m => Path Abs Dir -> Tool -> m ()
- listInstalled :: (MonadIO m, MonadThrow m) => Path Abs Dir -> m [Tool]
- data Tool
- toolString :: Tool -> String
- toolNameString :: Tool -> String
- parseToolText :: Text -> Maybe Tool
- filterTools :: PackageName -> (Version -> Bool) -> [Tool] -> [PackageIdentifier]
- extraDirs :: HasConfig env => Tool -> RIO env ExtraDirs
- installDir :: (MonadReader env m, MonadThrow m) => Path Abs Dir -> Tool -> m (Path Abs Dir)
- tempInstallDir :: (MonadReader env m, MonadThrow m) => Path Abs Dir -> Tool -> m (Path Abs Dir)
Documentation
:: (HasProcessContext env, HasLogFunc env) | |
=> WhichCompiler | |
-> Path Abs File | executable |
-> RIO env ActualCompiler |
markInstalled :: (MonadIO m, MonadThrow m) => Path Abs Dir -> Tool -> m () Source #
listInstalled :: (MonadIO m, MonadThrow m) => Path Abs Dir -> m [Tool] Source #
Tool PackageIdentifier | e.g. ghc-7.8.4, msys2-20150512 |
ToolGhcGit !Text !Text | e.g. ghc-git-COMMIT_ID-FLAVOUR |
toolString :: Tool -> String Source #
toolNameString :: Tool -> String Source #
:: PackageName | package to find |
-> (Version -> Bool) | which versions are acceptable |
-> [Tool] | tools to filter |
-> [PackageIdentifier] |
extraDirs :: HasConfig env => Tool -> RIO env ExtraDirs Source #
Binary directories for the given installed package
installDir :: (MonadReader env m, MonadThrow m) => Path Abs Dir -> Tool -> m (Path Abs Dir) Source #
tempInstallDir :: (MonadReader env m, MonadThrow m) => Path Abs Dir -> Tool -> m (Path Abs Dir) Source #