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
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
andersonsbr
ghcup-hs
Commits
d166cc84
Commit
d166cc84
authored
3 years ago
by
Arjun Kathuria
Browse files
Options
Downloads
Patches
Plain Diff
change type of rmGhcup fn from "Excepts '[NotInstalled] m ()" to m ()
parent
bb7229d2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/GHCup.hs
+5
-5
5 additions, 5 deletions
lib/GHCup.hs
with
5 additions
and
5 deletions
lib/GHCup.hs
+
5
−
5
View file @
d166cc84
...
...
@@ -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
...
...
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