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-pkg
script - Make the
null-ghc-pkg
script executable - Find the location of the
ghc
package 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-docset
script and edit in the location of theghc
package conf file. - Expose the
ghc-7.10.2
package with:ghc-pkg expose ghc-7.10.2
. This may require sudo acess. - Run the
build-ghc-docset
script. - Re-hide the
ghc-7.10.2
package 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.