Compare commits

...

3 Commits

Author SHA1 Message Date
Julian Ospald 879bd061dd
Bump to 0.1.4 2020-04-16 09:04:19 +02:00
Julian Ospald 75632b2cf1
Fix ghc being unlinked after installing a new one
Fixes #7
2020-04-16 08:39:36 +02:00
Julian Ospald b65b9dc5e1
Test that setting ghc versions isn't broken
Wrt #7
2020-04-16 08:39:29 +02:00
5 changed files with 21 additions and 3 deletions

View File

@ -49,11 +49,25 @@ eghcup list
eghcup list -t ghc
eghcup list -t cabal
ghc_ver=$(ghc --numeric-version)
ghc --version
ghci --version
ghc-$(ghc --numeric-version) --version
ghci-$(ghc --numeric-version) --version
# test installing new ghc doesn't mess with currently set GHC
# https://gitlab.haskell.org/haskell/ghcup-hs/issues/7
eghcup install 8.4.4
[ "$(ghc --numeric-version)" = "${ghc_ver}" ]
eghcup set 8.4.4
eghcup set 8.4.4
[ "$(ghc --numeric-version)" = "8.4.4" ]
eghcup set ${GHC_VERSION}
[ "$(ghc --numeric-version)" = "${ghc_ver}" ]
eghcup rm 8.4.4
[ "$(ghc --numeric-version)" = "${ghc_ver}" ]
eghcup rm $(ghc --numeric-version)
eghcup upgrade

View File

@ -1,5 +1,10 @@
# Revision history for ghcup
## 0.1.4 -- 2012-04-16
* build on all platforms with curl (as a binary), wrt https://gitlab.haskell.org/haskell/ghcup-hs/issues/6
* Fix unlinking of ghc symlinks after new installation, wrt https://gitlab.haskell.org/haskell/ghcup-hs/issues/7
## 0.1.3 -- 2020-04-15
* Fix lesser bug when skipping ghcup update

View File

@ -1,6 +1,6 @@
cabal-version: 3.0
name: ghcup
version: 0.1.3
version: 0.1.4
synopsis: ghc toolchain installer as an exe/library
description:
A rewrite of the shell script ghcup, for providing

View File

@ -247,7 +247,6 @@ setGHC ver sghc = do
-- for ghc tools (ghc, ghci, haddock, ...)
verfiles <- ghcToolFiles ver
forM_ verfiles $ \file -> do
liftIO $ hideError doesNotExistErrorType $ deleteFile (bindir </> file)
targetFile <- case sghc of
SetGHCOnly -> pure file
SetGHC_XY -> do

View File

@ -14,4 +14,4 @@ ghcupURL :: URI
ghcupURL = [uri|https://www.haskell.org/ghcup/data/ghcup-0.0.1.json|]
ghcUpVer :: PVP
ghcUpVer = [pver|0.1.3|]
ghcUpVer = [pver|0.1.4|]