@@ -6,17 +6,13 @@ author: Jasper Van der Jeugt
6Installation
6Installation
7------------
7------------
9−Installation is provided using [cabal], and some packages are available for
9+Installation is provided via Hackage, and some packages are available for
10−different distributions.
10+different distributions. For installation from source (i.e. via Hackage),
11+[stack] is recommended:
12− $ cabal install hakyll
13+ $ stack install hakyll
14−[cabal]: http://www.haskell.org/cabal/
15+[stack]: http://www.haskellstack.org/
16−If you have a recent installation of `cabal` and your time is somewhat valuable,
19− $ cabal install -j hakyll
21Linux distro packages:
17Linux distro packages:
@@ -34,27 +30,21 @@ started:
34This creates a folder `my-site` in the current directory, with some example
30This creates a folder `my-site` in the current directory, with some example
35content and a generic configuration.
31content and a generic configuration.
37−If `hakyll-init` is not found, you should make sure `$HOME/.cabal/bin` is in
33+If `hakyll-init` is not found, you should make sure your stack bin path
38−your `$PATH`.
34+(usually `$HOME/.local/bin`) is in your `$PATH`. You can check your stack local
39−
35+bin path by running `stack path --local-bin-path`.
40−(If you're on OS X you may not have a bin directory in `$HOME/.cabal`. In this
41−case, check `$HOME/Library/Haskell/bin` and put it on your path if you find
42−`hakyll-init` there. See [here] for more information on installation paths on
45−[here]: http://www.haskell.org/haskellwiki/Mac_OS_X_Common_Installation_Paths
47The file `site.hs` holds the configuration of your site, as an executable
37The file `site.hs` holds the configuration of your site, as an executable
48haskell program. We can compile and run it like this:
38haskell program. We can compile and run it like this:
50 $ cd my-site
40 $ cd my-site
51− $ ghc --make -threaded site.hs
41+ $ stack build
52− $ ./site build
42+ $ stack exec site build
54If you installed `hakyll` with a preview server (this is the default), you can
44If you installed `hakyll` with a preview server (this is the default), you can
57− $ ./site watch
47+ $ stack exec site watch
59and have a look at your site at
49and have a look at your site at
60[http://localhost:8000/](http://localhost:8000/).
50[http://localhost:8000/](http://localhost:8000/).