blob: fecb13681434194151c8c860401b58552c04c7ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
first create a configuration file, say config.json, that looks like follows:
{
"nick": "somenick",
"useNickServ": false
}
or, if the nick is registered with NickServ, then:
{
"nick": "somenick",
"pass": "somepass"
}
then enter the Nix shell for development:
cabal2nix . > default.nix && nix-shell -I stockholm=~/stockholm
and run the REPL:
build
run config.json
or, interactively:
ghci -isrc -Wall src/main.hs
withArgs ["config.json"] main
:r
|