ghcup-0.1.18.0: ghc toolchain installer
Copyright(c) Julian Ospald 2020
LicenseLGPL-3.0
Maintainerhasufell@hasufell.de
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

GHCup.Stack

Description

 
Synopsis

Documentation

installStackBin Source #

Installs stack into ~/.ghcup/bin/stack-<ver> and creates a default stack -> stack-x.y.z.q symlink for the latest installed version.

installStackUnpacked Source #

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).