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
a40d0cbb
Commit
a40d0cbb
authored
4 years ago
by
Arjun Kathuria
Browse files
Options
Downloads
Patches
Plain Diff
swap out system.Directory.rename for Win32.File.moveFileEx for windows
parent
9f5df9db
No related branches found
No related tags found
1 merge request
!101
[WIP] Feature "nuke"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/GHCup.hs
+3
-2
3 additions, 2 deletions
lib/GHCup.hs
with
3 additions
and
2 deletions
lib/GHCup.hs
+
3
−
2
View file @
a40d0cbb
...
@@ -1298,9 +1298,10 @@ rmGhcup = do
...
@@ -1298,9 +1298,10 @@ rmGhcup = do
-- we move it to temp dir, to be deleted at next reboot
-- we move it to temp dir, to be deleted at next reboot
tempDir
<-
liftIO
$
getTemporaryDirectory
tempDir
<-
liftIO
$
getTemporaryDirectory
tempFilepath
=
tempDir
</>
ghcupFilename
tempFilepath
=
tempDir
</>
ghcupFilename
hideError
doesNotExistErrorType
$
liftIO
$
renam
eFile
ghcupFilepath
tempFilepath
liftIO
$
hideError
NoSuchThing
$
Win32
.
mov
eFile
Ex
ghcupFilepath
(
Just
tempFilepath
)
1
#
else
#
else
hideError
doesNotExistErrorType
$
liftIO
$
rmFile
ghcupFilepath
-- delete it.
hideError
doesNotExistErrorType
$
liftIO
$
rmFile
ghcupFilepath
#
endif
#
endif
rmTool
::
(
MonadReader
AppState
m
rmTool
::
(
MonadReader
AppState
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