The user guide implies man page support, but I just can't get it to work.
I've made sure $MANPATH is empty when installing GHC with GHCup, and installed and used man-db (binary is gman on macOS when installed with Homebrew), but no dice. I can't see any man pages where GHCup installs GHC.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
Okay, it looks like the versions I want man pages for don't install them.
Maybe the user guide should clarify that not all versions come with man pages.
By the way, I clicked the link to the GHC issue, and I think man-db is not required.
macOS' man(1) also supports deriving extra $MANPATH directories from $PATH (without requiring a mandb -u call). It's called AUTOPATH, and it searches the parent directories for any subdirectories containing the man pages.
I tested this using a random non-GHC man page with a containing share directory, like ../share/man/man1 on a $PATH entry without a corresponding $MANPATH entry, and it works. (I mean, I always knew it does, but was trying to figure out why GHCup wasn't working.) This could be useful to know, as using gman on my system renders in grayscale.
FYI, cabal has a cabal man --raw command you can run to get a raw (g/t/n?)roff output that you can save to a cabal.1 or cabal-install.1 file in some share/man/man1/ directory.
This man subcommand is not documented on the main --help output, but you can use it to generate man pages for cabal-install. It's a >300k line man page when rendered. It would be really nice if GHCup installed man pages, regardless of whether the GHC or Cabal bindists come with the necessary files or not. I assume the GHC bindist has the files, but just doesn't install them with the default Make rules or whatever build system is being used?
Does GHCup have — or would you be okay with adding & maintaining — post-install hooks? Perhaps some config option could be set to run a specific command line (or executable) after installation.