@@ -0,0 +1,63 @@
1+% Nix loves Haskell
2+% Peter Simons \<simons@cryp.to\>
3+% 2015-05-15
4+
5+-------------------------------------------------------------------------------
6+
7+# What can Nix do for you?
8+
9+1) Install a Haskell compiler
10+
11+2) Create a Haskell development environment
12+
13+
14+-------------------------------------------------------------------------------
15+
16+# Installing a Haskell compiler
17+
18+ $ nix-env -iA haskell.compiler.ghc784
19+
20+ $ nix-env -qaP -A haskell.compiler
21+ haskell.compiler.ghc6104 ghc-6.10.4
22+ haskell.compiler.ghc6123 ghc-6.12.3
23+ haskell.compiler.ghc704 ghc-7.0.4
24+ haskell.compiler.ghc722 ghc-7.2.2
25+ haskell.compiler.ghc742 ghc-7.4.2
26+ haskell.compiler.ghc763 ghc-7.6.3
27+ haskell.compiler.ghc784 ghc-7.8.4
28+ haskell.compiler.ghc7101 ghc-7.10.1
29+ haskell.compiler.ghcHEAD ghc-7.11.20150402
30+ haskell.compiler.ghcjs ghcjs-0.1.0
31+ haskell.compiler.jhc jhc-0.8.2
32+ haskell.compiler.uhc uhc-1.1.9.0
33+
34+-------------------------------------------------------------------------------
35+
36+# Installing more than one Haskell compiler
37+
38+- Multiple environments:
39+
40+ $ nix-env -p ~/ghc-7.6.3 -iA haskell.compiler.ghc763
41+ $ nix-env -p ~/ghc-7.8.4 -iA haskell.compiler.ghc784
42+ [...]
43+
44+ $ export PATH=~/ghc-7.6.3/bin:$PATH
45+ $ ghc --numeric-version
46+ 7.6.3
47+
48+- Temporary environment:
49+
50+ $ nix-shell -p haskell.compiler.ghc7101
51+ [nix-shell:~]$ ghc --numeric-version
52+ 7.10.1
53+ [nix-shell:~]$ exit
54+
55+-------------------------------------------------------------------------------
56+
57+# Where to get help ...
58+
59+- `https://nixos.org/`
60+
61+- `nix-dev@lists.science.uu.nl`
62+
63+- `#nixos` auf `irc.freenode.org`