change type of rmGhcup fn from "Excepts '[NotInstalled] m ()" to m ()

This commit is contained in:
Arjun Kathuria 2021-06-26 23:26:31 +05:30
parent bb7229d224
commit d166cc84a1
1 changed files with 5 additions and 5 deletions

View File

@ -1284,13 +1284,13 @@ rmStackVer ver = do
-- assuming the current scheme of having just 1 ghcup bin, no version info is required.
rmGhcup :: ( MonadReader AppState m
, MonadIO m,
MonadCatch m
, MonadIO m
, MonadCatch m
)
=> Excepts '[NotInstalled] m ()
=> m ()
rmGhcup = do
AppState {dirs = Dirs {binDir}} <- lift ask
AppState {dirs = Dirs {binDir}} <- ask
let ghcupFilename = "ghcup" <> exeExt
let ghcupFilepath = binDir </> ghcupFilename
#if defined(IS_WINDOWS)
@ -1332,7 +1332,7 @@ rmTool ListResult {lVer, lTool, lCross} = do
rmStackVer lVer
GHCup -> do
rmGhcup
lift rmGhcup
rmGhcupDirs :: ( MonadReader AppState m
, MonadIO m