Skip to content

Instantly share code, notes, and snippets.

@yfyf
Created March 31, 2015 08:48
Show Gist options
  • Save yfyf/4c953ebbf72aef369d1f to your computer and use it in GitHub Desktop.
Save yfyf/4c953ebbf72aef369d1f to your computer and use it in GitHub Desktop.
Useful additions to ~/.cabal/config
-- Prevent working in non-sandboxed envs:
require-sandbox: True
-- Always enable test suite installation/building
tests: True
-- Always build documentation
documentation: True
-- Run (# of CPUs) build/fetch jobs in parallel
jobs: $ncpus
-- A few more options you might want to consider:
-- library-coverage: True
-- library-profiling: True
-- Haddock (i.e. doc) settings
haddock
-- Create a hoogle index of installed packages
hoogle: True
-- Hyperlink generated doc sections to source-file
-- parts (!)
hyperlink-source: True
-- You can also try to enable building docs for
-- executables, but it is known to interact badly
-- with `--hyperlink-source':
-- https://github.com/haskell/cabal/issues/1919
-- executables: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment