Commit b2a5ce1e authored by Julian Ospald's avatar Julian Ospald 🍵

Merge remote-tracking branch 'origin/manpages'

parents 9501ad65 93a94c5f
Pipeline #14425 canceled with stage
in 3 minutes and 25 seconds
......@@ -82,6 +82,7 @@ handles your haskell packages and can demand that [a specific version](https://c
### Manpages
For man pages to work you need [man-db]( as your `man` provider, then issue `man ghc`. Manpages only work for the currently set ghc.
`MANPATH` may be required to be unset.
## Design goals
......@@ -1548,6 +1548,15 @@ set_ghc() {
# shellcheck disable=SC2046
edo ln $(optionv "-v") -sf "haddock-ghc${target_suffix}" "${BIN_LOCATION}/haddock${target_suffix}"
if [ -z "${target_suffix}" ] && [ -d "${inst_location}/share" ] ; then
# Make sure we don't link "${BIN_LOCATION}/../share/share".
# POSIX doesn't allow '-T' for 'ln'.
if [ -e "${BIN_LOCATION}/../share" ] ; then
edo rm "${BIN_LOCATION}/../share"
# shellcheck disable=SC2046
edo ln $(optionv "-v") -sf ghc/"${myghcver}"/share "${BIN_LOCATION}/../share"
status_message "Done"
......@@ -1661,6 +1670,10 @@ rm_ghc() {
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"
warning_message "Done."
warning_message "You may now want to set currently active GHC to a different version via:"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment