Copyright | (c) Julian Ospald 2020 |
---|---|
License | LGPL-3.0 |
Maintainer | hasufell@hasufell.de |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- getDirs :: IO Dirs
- ghcupConfigFile :: MonadIO m => Excepts '[JSONError] m UserSettings
- ghcupGHCBaseDir :: MonadReader AppState m => m (Path Abs)
- ghcupGHCDir :: (MonadReader AppState m, MonadThrow m) => GHCTargetVersion -> m (Path Abs)
- mkGhcupTmpDir :: (MonadThrow m, MonadIO m) => m (Path Abs)
- parseGHCupGHCDir :: MonadThrow m => Path Rel -> m GHCTargetVersion
- relativeSymlink :: Path Abs -> Path Abs -> ByteString
- withGHCupTmpDir :: (MonadResource m, MonadThrow m, MonadIO m) => m (Path Abs)
Documentation
ghcupConfigFile :: MonadIO m => Excepts '[JSONError] m UserSettings Source #
ghcupGHCBaseDir :: MonadReader AppState m => m (Path Abs) Source #
~.ghcupghc by default.
ghcupGHCDir :: (MonadReader AppState m, MonadThrow m) => GHCTargetVersion -> m (Path Abs) Source #
Gets '~.ghcupghc/ghcupGHCDir'. The dir may be of the form * armv7-unknown-linux-gnueabihf-8.8.3 * 8.8.4
mkGhcupTmpDir :: (MonadThrow m, MonadIO m) => m (Path Abs) Source #
parseGHCupGHCDir :: MonadThrow m => Path Rel -> m GHCTargetVersion Source #
See ghcupToolParser
.
:: Path Abs | the path in which to create the symlink |
-> Path Abs | the symlink destination |
-> ByteString |
withGHCupTmpDir :: (MonadResource m, MonadThrow m, MonadIO m) => m (Path Abs) Source #