Compare commits
3 Commits
31d70e34e9
...
879bd061dd
Author | SHA1 | Date |
---|---|---|
Julian Ospald | 879bd061dd | |
Julian Ospald | 75632b2cf1 | |
Julian Ospald | b65b9dc5e1 |
|
@ -49,11 +49,25 @@ eghcup list
|
||||||
eghcup list -t ghc
|
eghcup list -t ghc
|
||||||
eghcup list -t cabal
|
eghcup list -t cabal
|
||||||
|
|
||||||
|
ghc_ver=$(ghc --numeric-version)
|
||||||
ghc --version
|
ghc --version
|
||||||
ghci --version
|
ghci --version
|
||||||
ghc-$(ghc --numeric-version) --version
|
ghc-$(ghc --numeric-version) --version
|
||||||
ghci-$(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 rm $(ghc --numeric-version)
|
||||||
|
|
||||||
eghcup upgrade
|
eghcup upgrade
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Revision history for ghcup
|
# 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
|
## 0.1.3 -- 2020-04-15
|
||||||
|
|
||||||
* Fix lesser bug when skipping ghcup update
|
* Fix lesser bug when skipping ghcup update
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
cabal-version: 3.0
|
cabal-version: 3.0
|
||||||
name: ghcup
|
name: ghcup
|
||||||
version: 0.1.3
|
version: 0.1.4
|
||||||
synopsis: ghc toolchain installer as an exe/library
|
synopsis: ghc toolchain installer as an exe/library
|
||||||
description:
|
description:
|
||||||
A rewrite of the shell script ghcup, for providing
|
A rewrite of the shell script ghcup, for providing
|
||||||
|
|
|
@ -247,7 +247,6 @@ setGHC ver sghc = do
|
||||||
-- for ghc tools (ghc, ghci, haddock, ...)
|
-- for ghc tools (ghc, ghci, haddock, ...)
|
||||||
verfiles <- ghcToolFiles ver
|
verfiles <- ghcToolFiles ver
|
||||||
forM_ verfiles $ \file -> do
|
forM_ verfiles $ \file -> do
|
||||||
liftIO $ hideError doesNotExistErrorType $ deleteFile (bindir </> file)
|
|
||||||
targetFile <- case sghc of
|
targetFile <- case sghc of
|
||||||
SetGHCOnly -> pure file
|
SetGHCOnly -> pure file
|
||||||
SetGHC_XY -> do
|
SetGHC_XY -> do
|
||||||
|
|
|
@ -14,4 +14,4 @@ ghcupURL :: URI
|
||||||
ghcupURL = [uri|https://www.haskell.org/ghcup/data/ghcup-0.0.1.json|]
|
ghcupURL = [uri|https://www.haskell.org/ghcup/data/ghcup-0.0.1.json|]
|
||||||
|
|
||||||
ghcUpVer :: PVP
|
ghcUpVer :: PVP
|
||||||
ghcUpVer = [pver|0.1.3|]
|
ghcUpVer = [pver|0.1.4|]
|
||||||
|
|
Loading…
Reference in New Issue