@@ -4,7 +4,7 @@
4[](https://buildkite.com/input-output-hk/haskell-dot-nix-nightly-updates)
4[](https://buildkite.com/input-output-hk/haskell-dot-nix-nightly-updates)
6`haskell.nix` can automatically translate your Cabal or Stack project and
6`haskell.nix` can automatically translate your Cabal or Stack project and
7−its dependencies into Nix code.
7+its dependencies into Nix code.
9## [Documentation](https://input-output-hk.github.io/haskell.nix/)
9## [Documentation](https://input-output-hk.github.io/haskell.nix/)
@@ -70,6 +70,8 @@ pkgs.haskell-nix.stackProject {
73+### Working with a project
73To build the library component of a package in the project run:
75To build the library component of a package in the project run:
@@ -90,24 +92,23 @@ cabal new-build your-package-name
90cabal new-repl your-package-name:library:your-package-name
92cabal new-repl your-package-name:library:your-package-name
93−## Using binary Cache to speed up compilation
95+## Using a binary cache
95To use precompiled binaries you'll need:
97To use precompiled binaries you'll need:
97−- to configure a binary cache by following instructions on [iohk.cachix.org](https://iohk.cachix.org).
99+- To configure the IOHK binary cache by following the instructions on [iohk.cachix.org](https://iohk.cachix.org).
98−- to pin `nixpkgs` according to [nix/sources.json](nix/sources.json).
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).
101## Related repos
102## Related repos
103The `haskell.nix` repository contains the runtime system for building
104The `haskell.nix` repository contains the runtime system for building
104Haskell packages in Nix. It depends on other repos, which are:
105Haskell packages in Nix. It depends on other repos, which are:
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.
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.
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.
112## IRC Channel
113## IRC Channel