Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghcup-hs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
ghcup-hs
Commits
b38a5691
Verified
Commit
b38a5691
authored
3 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Bump to 0.1.16.1
parent
810607e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-1
1 addition, 1 deletion
CHANGELOG.md
ghcup.cabal
+1
-1
1 addition, 1 deletion
ghcup.cabal
lib/GHCup.hs
+15
-14
15 additions, 14 deletions
lib/GHCup.hs
with
17 additions
and
16 deletions
CHANGELOG.md
+
1
−
1
View file @
b38a5691
# Revision history for ghcup
## 0.1.16 -- 2021-07-2
8
## 0.1.16
.1
-- 2021-07-2
9
*
Add 'nuke' subcommand wrt
[
#135
](
https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/135
)
, implemented by Arjun Kathuria
*
Add uninstallation powershell script on windows wrt
[
#150
](
https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/150
)
...
...
This diff is collapsed.
Click to expand it.
ghcup.cabal
+
1
−
1
View file @
b38a5691
cabal-version: 3.0
name: ghcup
version: 0.1.16
version: 0.1.16
.1
license: LGPL-3.0-only
license-file: LICENSE
copyright: Julian Ospald 2020
...
...
This diff is collapsed.
Click to expand it.
lib/GHCup.hs
+
15
−
14
View file @
b38a5691
...
...
@@ -1019,8 +1019,8 @@ listVersions lt' criteria = do
slr
<-
strayStacks
avTools
sSet
stacks
pure
(
sort
(
slr
++
lr
))
GHCup
->
do
let
cg
=
currentGHCup
avTools
pure
(
sort
(
cg
:
lr
))
let
cg
=
maybeToList
$
currentGHCup
avTools
pure
(
sort
(
cg
++
lr
))
Nothing
->
do
ghcvers
<-
go
(
Just
GHC
)
cSet
cabals
hlsSet'
hlses
sSet
stacks
cabalvers
<-
go
(
Just
Cabal
)
cSet
cabals
hlsSet'
hlses
sSet
stacks
...
...
@@ -1180,24 +1180,25 @@ listVersions lt' criteria = do
[
i
|
Could not parse version of stray directory #{e}
|]
pure
Nothing
currentGHCup
::
Map
.
Map
Version
VersionInfo
->
ListResult
currentGHCup
::
Map
.
Map
Version
VersionInfo
->
Maybe
ListResult
currentGHCup
av
=
let
currentVer
=
pvpToVersion
ghcUpVer
listVer
=
Map
.
lookup
currentVer
av
latestVer
=
fst
<$>
headOf
(
getTagged
Latest
)
av
recommendedVer
=
fst
<$>
headOf
(
getTagged
Latest
)
av
isOld
=
maybe
True
(
>
currentVer
)
latestVer
&&
maybe
True
(
>
currentVer
)
recommendedVer
in
ListResult
{
lVer
=
currentVer
,
lTag
=
maybe
(
if
isOld
then
[
Old
]
else
[]
)
_viTags
listVer
,
lCross
=
Nothing
,
lTool
=
GHCup
,
fromSrc
=
False
,
lStray
=
isNothing
listVer
,
lSet
=
True
,
lInstalled
=
True
,
lNoBindist
=
False
,
hlsPowered
=
False
}
in
if
|
currentVer
==
listVer
->
Nothing
|
otherwise
->
ListResult
{
lVer
=
currentVer
,
lTag
=
maybe
(
if
isOld
then
[
Old
]
else
[]
)
_viTags
listVer
,
lCross
=
Nothing
,
lTool
=
GHCup
,
fromSrc
=
False
,
lStray
=
isNothing
listVer
,
lSet
=
True
,
lInstalled
=
True
,
lNoBindist
=
False
,
hlsPowered
=
False
}
-- NOTE: this are not cross ones, because no bindists
toListResult
::
(
MonadLogger
m
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment