Instructions for building a Dash docset for the GHC API (for ghc 7.10.2)
The ghc module is hidden by default, so it's not included in
any of the Haskell docsets I could find. Here is a recipe for
building a docset which contains just ghc-7.10.2.
- Build https://github.com/philopon/haddocset
- In a work directory, copy the
null-ghc-pkgscript - Make the
null-ghc-pkgscript executable - Find the location of the
ghcpackage conf file. If you have installed the Haskell Platform it will reside in
/Library/Frameworks/GHC.framework/Versions/7.10.2-x86_64/usr/lib/ghc-7.10.2/package.conf.d/ghc-7.10.2-XXXXXX.conf
- Copy the
build-ghc-docsetscript and edit in the location of theghcpackage conf file. - Expose the
ghc-7.10.2package with:ghc-pkg expose ghc-7.10.2. This may require sudo acess. - Run the
build-ghc-docsetscript. - Re-hide the
ghc-7.10.2package with:ghc-pkg hide ghc-7.10.2. - The docset resides in the directory
ghc-7.10.2.docset. Double click it to load it into Dash.