Skip to content

Commit deb204c

Browse files
committed
README.md mv current Building section into Cabal section
Since Building section is about use of Cabal workflow.
1 parent 9bc228b commit deb204c

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -98,32 +98,17 @@ env ALL_TESTS=yes cabal v2-test
9898
env NIXPKGS_TESTS=yes PRETTY_TESTS=1 cabal v2-test
9999
```
100100

101-
## Entering the HNix REPL
102-
103-
Enter REPL:
104-
```
105-
hnix --repl
106-
```
107-
108-
To evaluate an expression and make it available in the REPL as the `input` variable use:
109-
```
110-
hnix --eval -E '(import <nixpkgs> {}).pkgs.hello' --repl
111-
```
112-
113-
Use the `:help` command for a list of all available REPL commands.
114-
115-
116-
## Building
101+
### Building
117102

118-
### With benchmarks
103+
#### With benchmarks
119104

120105
To run benchmarks:
121106

122107
```
123108
cabal v2-bench
124109
```
125110

126-
### With profiling
111+
#### With profiling
127112

128113
To build `hnix` with profiling enabled:
129114

@@ -132,7 +117,7 @@ cabal v2-configure --enable-tests --enable-profiling --flags=profiling
132117
cabal v2-run hnix -- <args> +RTS -p
133118
```
134119

135-
### With full debug info
120+
#### With full debug info
136121

137122
To build `hnix` for debugging, with full tracing output and stack traces:
138123

@@ -151,6 +136,21 @@ cabal v2-run hnix -- --help
151136
(`--` is for separation between `cabal` & `hnix` args)
152137

153138

139+
## Entering the HNix REPL
140+
141+
Enter REPL:
142+
```
143+
hnix --repl
144+
```
145+
146+
To evaluate an expression and make it available in the REPL as the `input` variable use:
147+
```
148+
hnix --eval -E '(import <nixpkgs> {}).pkgs.hello' --repl
149+
```
150+
151+
Use the `:help` command for a list of all available REPL commands.
152+
153+
154154
## Contributing
155155

156156
1. If something in the [quests](https://github.com/haskell-nix/hnix/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22+no%3Aassignee) looks interesting, look through the thread and leave a comment taking it, to let others know you're working on it.

0 commit comments

Comments
 (0)