@@ -4,7 +4,7 @@
44[](https://buildkite.com/input-output-hk/haskell-dot-nix-nightly-updates)
55
66`haskell.nix` can automatically translate your Cabal or Stack project and
7−its dependencies into Nix code.
7+its dependencies into Nix code.
88
99## [Documentation](https://input-output-hk.github.io/haskell.nix/)
1010
@@ -70,6 +70,8 @@ pkgs.haskell-nix.stackProject {
7070}
7171```
7272
73+### Working with a project
74+
7375To build the library component of a package in the project run:
7476
7577```shell
@@ -90,24 +92,23 @@ cabal new-build your-package-name
9092cabal new-repl your-package-name:library:your-package-name
9193```
9294
93−## Using binary Cache to speed up compilation
95+## Using a binary cache
9496
9597To use precompiled binaries you'll need:
9698
97−- to configure a binary cache by following instructions on [iohk.cachix.org](https://iohk.cachix.org).
98−- to pin `nixpkgs` according to [nix/sources.json](nix/sources.json).
99−
99+- To configure the IOHK binary cache by following the instructions on [iohk.cachix.org](https://iohk.cachix.org).
100+- To pin your `nixpkgs` to match one of the revisions built by our CI: these can be found inside the `sources` attribute (see the quickstart above for an example).
100101
101102## Related repos
102103
103104The `haskell.nix` repository contains the runtime system for building
104105Haskell packages in Nix. It depends on other repos, which are:
105106
106−- [nix-tools](https://github.com/input-output-hk/nix-tools) — provides the programs for generating Nix expressions from Haskell projects.
107+- [`nix-tools`](https://github.com/input-output-hk/nix-tools) — provides the programs for generating Nix expressions from Haskell projects.
107108
108−- [hackage.nix](https://github.com/input-output-hk/hackage.nix) — the latest contents of the [Hackage](https://hackage.haskell.org/) databases, converted to Nix expressions.
109+- [`hackage.nix`](https://github.com/input-output-hk/hackage.nix) — the latest contents of the [Hackage](https://hackage.haskell.org/) databases, converted to Nix expressions.
109110
110−- [stackage.nix](https://github.com/input-output-hk/stackage.nix) — all of the [Stackage](https://www.stackage.org/) snapshots, converted to Nix expressions.
111+- [`stackage.nix`](https://github.com/input-output-hk/stackage.nix) — all of the [Stackage](https://www.stackage.org/) snapshots, converted to Nix expressions.
111112
112113## IRC Channel
113114