git.iko.soy/typeable/cabal2nix
on master help sign in
doc: start working on a user guide
commitebe88ebca20ae71496137cc3453bc23cfe3f33f7 authorPeter Simons <simons@cryp.to> dateFri 15 May 2015, 16:00 (11 years ago) parent036dff8
3 files changed+68−1
doc/.gitignore+1 doc/GNUmakefile+4−1 doc/user-guide.md+63
doc/.gitignore+1
@@ -4,3 +4,4 @@
44/hal8.out
55/hal8.pdf
66/hal8-folien.pdf
7+/user-guide.pdf
doc/GNUmakefile+4−1
@@ -4,7 +4,7 @@ PANDOC_FLAGS := --smart -V papersize:"a4paper"
44
55.PHONY: all clean
66
7−all: hal8.pdf hal8.html hal8-folien.pdf
7+all: hal8.pdf hal8.html hal8-folien.pdf user-guide.pdf
88
99%.tex : %.md
1010 pandoc -s $(PANDOC_FLAGS) -f markdown -t latex $< -o $@
@@ -21,5 +21,8 @@ all: hal8.pdf hal8.html hal8-folien.pdf
2121hal8-folien.pdf : hal8-folien.md
2222 pandoc -t beamer $< -o $@
2323
24+user-guide.pdf : user-guide.md
25+ pandoc -t beamer $< -o $@
26+
2427clean:
2528 @rm -f hal8.aux hal8.html hal8.log hal8.out hal8.pdf hal8.toc
doc/user-guide.mdnew file+63
@@ -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`