Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghcup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Commits
00119a81
Verified
Commit
00119a81
authored
5 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Reinstate "Merge remote-tracking branch 'origin/merge-requestes/129'"
parent
d42025e1
No related branches found
No related tags found
1 merge request
!133
Manpages
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghcup
+8
-0
8 additions, 0 deletions
ghcup
with
8 additions
and
0 deletions
ghcup
+
8
−
0
View file @
00119a81
...
@@ -1548,6 +1548,10 @@ set_ghc() {
...
@@ -1548,6 +1548,10 @@ set_ghc() {
# shellcheck disable=SC2046
# shellcheck disable=SC2046
edo
ln
$(
optionv
"-v"
)
-sf
"haddock-ghc
${
target_suffix
}
"
"
${
BIN_LOCATION
}
/haddock
${
target_suffix
}
"
edo
ln
$(
optionv
"-v"
)
-sf
"haddock-ghc
${
target_suffix
}
"
"
${
BIN_LOCATION
}
/haddock
${
target_suffix
}
"
fi
fi
if
[
-z
"
${
target_suffix
}
"
]
&&
[
-d
"
${
inst_location
}
/share"
]
;
then
# shellcheck disable=SC2046
edo
ln
$(
optionv
"-v"
)
-sfT
ghc/
"
${
myghcver
}
"
/share
"
${
BIN_LOCATION
}
/../share"
fi
status_message
"Done"
status_message
"Done"
...
@@ -1661,6 +1665,10 @@ rm_ghc() {
...
@@ -1661,6 +1665,10 @@ rm_ghc() {
fi
fi
done
done
unset
t known_tools
unset
t known_tools
# remove dangling symlink to share directory
if
[
-h
"
${
BIN_LOCATION
}
/../share"
]
&&
[
!
-e
"
${
BIN_LOCATION
}
/../share"
]
;
then
edo
rm
"
${
BIN_LOCATION
}
/../share"
fi
warning_message
"Done."
warning_message
"Done."
warning_message
"You may now want to set currently active GHC to a different version via:"
warning_message
"You may now want to set currently active GHC to a different version via:"
...
...
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