[commit: haddock] master: Add some Hacking docs for getting started (fb5d858)

git at git.haskell.org git at git.haskell.org
Wed Jul 8 08:39:01 UTC 2015


Repository : ssh://git@git.haskell.org/haddock

On branch  : master
Link       : http://git.haskell.org/haddock.git/commitdiff/fb5d8584779da51521e8bf745e8627b5ddf3724d

>---------------------------------------------------------------

commit fb5d8584779da51521e8bf745e8627b5ddf3724d
Author: Bartosz Nitka <bnitka at fb.com>
Date:   Sun Jun 7 08:40:59 2015 -0700

    Add some Hacking docs for getting started


>---------------------------------------------------------------

fb5d8584779da51521e8bf745e8627b5ddf3724d
 README.md | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/README.md b/README.md
index b85d99b..fba02bd 100644
--- a/README.md
+++ b/README.md
@@ -45,3 +45,22 @@ format.
 #### Contributing
 
 Please create issues when you have any problems and pull requests if you have some code.
+
+###### Hacking
+
+To get started you'll need a latest GHC release installed.
+
+  git clone https://github.com/haskell/haddock.git
+  cd haddock
+  cabal sandbox init
+  cabal sandbox add-source haddock-library
+  cabal sandbox add-source haddock-api
+  # adjust -j to the number of cores you want to use
+  cabal install -j4 --dependencies-only --enable-tests
+  cabal configure --enable-tests
+  cabal build -j4
+  # run the test suite
+  cabal test
+
+If you want to build against `GHC HEAD`, `ghc-head` is the corresponding branch.
+Note that it doesn't have to be up to date. 



More information about the ghc-commits mailing list