Copyright | (c) Julian Ospald 2020 |
---|---|
License | LGPL-3.0 |
Maintainer | hasufell@hasufell.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GHCup.Stack
Description
Synopsis
- installStackBin :: (MonadMask m, MonadCatch m, MonadReader env m, HasDirs env, HasSettings env, HasPlatformReq env, HasGHCupInfo env, HasLog env, MonadResource m, MonadIO m, MonadUnliftIO m, MonadFail m) => Version -> InstallDir -> Bool -> Excepts '[AlreadyInstalled, CopyError, DigestError, ContentLengthError, GPGError, DownloadFailed, NoDownload, NotInstalled, UnknownArchive, TarDirDoesNotExist, ArchiveResult, FileAlreadyExistsError, URIParseError] m ()
- installStackBindist :: (MonadMask m, MonadCatch m, MonadReader env m, HasPlatformReq env, HasDirs env, HasSettings env, HasLog env, MonadResource m, MonadIO m, MonadUnliftIO m, MonadFail m) => DownloadInfo -> Version -> InstallDir -> Bool -> Excepts '[AlreadyInstalled, CopyError, DigestError, ContentLengthError, GPGError, DownloadFailed, NoDownload, NotInstalled, UnknownArchive, TarDirDoesNotExist, ArchiveResult, FileAlreadyExistsError, URIParseError] m ()
- installStackUnpacked :: (MonadReader env m, HasLog env, MonadCatch m, MonadIO m) => GHCupPath -> InstallDirResolved -> Version -> Bool -> Excepts '[CopyError, FileAlreadyExistsError] m ()
- setStack :: (MonadMask m, MonadReader env m, HasDirs env, HasLog env, MonadThrow m, MonadFail m, MonadIO m, MonadUnliftIO m) => Version -> Excepts '[NotInstalled] m ()
- unsetStack :: (MonadMask m, MonadReader env m, HasDirs env, MonadIO m) => m ()
- rmStackVer :: (MonadMask m, MonadReader env m, HasDirs env, MonadThrow m, HasLog env, MonadIO m, MonadFail m, MonadCatch m, MonadUnliftIO m) => Version -> Excepts '[NotInstalled] m ()
Documentation
Arguments
:: (MonadMask m, MonadCatch m, MonadReader env m, HasDirs env, HasSettings env, HasPlatformReq env, HasGHCupInfo env, HasLog env, MonadResource m, MonadIO m, MonadUnliftIO m, MonadFail m) | |
=> Version | |
-> InstallDir | |
-> Bool | Force install |
-> Excepts '[AlreadyInstalled, CopyError, DigestError, ContentLengthError, GPGError, DownloadFailed, NoDownload, NotInstalled, UnknownArchive, TarDirDoesNotExist, ArchiveResult, FileAlreadyExistsError, URIParseError] m () |
Installs stack into ~/.ghcup/bin/stack-<ver>
and
creates a default stack -> stack-x.y.z.q
symlink for
the latest installed version.
Arguments
:: (MonadMask m, MonadCatch m, MonadReader env m, HasPlatformReq env, HasDirs env, HasSettings env, HasLog env, MonadResource m, MonadIO m, MonadUnliftIO m, MonadFail m) | |
=> DownloadInfo | |
-> Version | |
-> InstallDir | |
-> Bool | Force install |
-> Excepts '[AlreadyInstalled, CopyError, DigestError, ContentLengthError, GPGError, DownloadFailed, NoDownload, NotInstalled, UnknownArchive, TarDirDoesNotExist, ArchiveResult, FileAlreadyExistsError, URIParseError] m () |
Like installStackBin
, except takes the DownloadInfo
as
argument instead of looking it up from GHCupDownloads
.
Arguments
:: (MonadReader env m, HasLog env, MonadCatch m, MonadIO m) | |
=> GHCupPath | Path to the unpacked stack bindist (where the executable resides) |
-> InstallDirResolved | |
-> Version | |
-> Bool | Force install |
-> Excepts '[CopyError, FileAlreadyExistsError] m () |
Install an unpacked stack distribution.
setStack :: (MonadMask m, MonadReader env m, HasDirs env, HasLog env, MonadThrow m, MonadFail m, MonadIO m, MonadUnliftIO m) => Version -> Excepts '[NotInstalled] m () Source #
Set the ~/.ghcup/bin/stack
symlink.
unsetStack :: (MonadMask m, MonadReader env m, HasDirs env, MonadIO m) => m () Source #
rmStackVer :: (MonadMask m, MonadReader env m, HasDirs env, MonadThrow m, HasLog env, MonadIO m, MonadFail m, MonadCatch m, MonadUnliftIO m) => Version -> Excepts '[NotInstalled] m () Source #
Delete a stack version. Will try to fix the stack
symlink
after removal (e.g. setting it to an older version).