id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
17,add more default locations for documentation installations,haskellmode,claus,"It is astonishing how GHC/Haskell installation layouts differ across platforms. I was hoping for GHC to implement [http://hackage.haskell.org/trac/ghc/ticket/1226 `--print-docdir`] and thereby to provide programmatic access to its documentation. This was implemented, but later reverted, as [http://hackage.haskell.org/trac/ghc/ticket/1880#comment:5 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?).",enhancement,new,major,,---,,,,
