Ticket #17 (new enhancement)
add more default locations for documentation installations
| Reported by: | haskellmode | Owned by: | claus |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | --- | Version: | |
| Keywords: | Cc: |
Description
It is astonishing how GHC/Haskell installation layouts differ across platforms. I was hoping for GHC to implement `--print-docdir` and thereby to provide programmatic access to its documentation. This was implemented, but later reverted, as it seems unclear how to do it right, so we are back to square one.
Our fallback is to provide a list of common documentation installation locations and, finally, for the user to tell us where the docs are (g:haddock_docdir).
This ticket is a place for users to suggest known default documentation installation locations.
As a minimum, we'd need the GHC/Docs installation layout for your packaging system (of course, GHC is in /tuesdays/odd_languages/GHC-<hash-of-ghc-version>/, GHC docs are always in /if/you/really/want/to/know/<minor-version>-GHC-<major-version>/, while cabal package docs are in /the/package/manager/also/<ghc-version>/cabal/<cabal-version>/<package>/<package-version>/html/) but for some reason, I find these standard locations hard to guess, so I need you to tell me;-)
Better would be some kind of system (what are the rules for packaging software on your platform?) or Haskell-tool access (e.g., cabal package docs can be found via ghc field <package> haddock-html, but how do I find the GHC docs if I know the GHC binary location?).
