You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,25 @@ This `cabal.nix` will be imported by the `default.nix` to be used as the core de
18
18
19
19
If this is the first time you've ran `cabal`, then run `cabal update` to get the latest package list in `~/.cabal`.
20
20
21
-
## Developing inside `nix-shell`
21
+
## Installation
22
+
23
+
If on Nix, you can install just by using:
24
+
25
+
```sh
26
+
nix-env -f ./default.nix -i
27
+
```
28
+
29
+
If you are not, then use `cabal`:
30
+
31
+
```sh
32
+
# you need to first generate the cabal file
33
+
hpack
34
+
cabal install
35
+
```
36
+
37
+
It installs the executable into `~/.cabal/bin`.
38
+
39
+
## Developing
22
40
23
41
Run `nix-shell`, and once you're inside, you can use:
24
42
@@ -56,6 +74,12 @@ cabal clean
56
74
cabal install
57
75
```
58
76
77
+
Once you have finished developing, you can build the package using:
78
+
79
+
```sh
80
+
nix-build
81
+
```
82
+
59
83
## Using the `package.yaml`
60
84
61
85
Any module that is meant to be consumed as a library needs to be listed in the `exposed-modules`. Any module that is not listed there are considered to be private modules.
0 commit comments