-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
79 lines (57 loc) · 1.39 KB
/
Justfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Just a task runner
# <https://github.com/casey/just>
# shows this help message
help:
@just -l
# runs the benchmark
bench:
cabal bench --enable-tests --benchmark-options='--output a.html'
[private]
alias be := bench
# builds the library
build:
cabal build
[private]
alias b := build
# shows all warnings and errors
check:
cabal build --ghc-options="-fforce-recomp -fno-code"
[private]
alias c := check
# generates Haddock document
doc:
cabal haddock
[private]
alias d := doc
# runs doctest
doctest:
cabal repl --with-ghc=doctest --repl-options='-w -Wdefault'
[private]
alias dt := doctest
# runs the lazysegtree example
eg:
cabal run example-lazy-segtree
# rebuilds the project and measures the compile time (nix flakes required)
measure:
cabal clean && cabal build ac-library-hs --ghc-options "-ddump-to-file -ddump-timings" && nix run nixpkgs#time-ghc-modules
[private]
alias m := measure
# runs local test (parameter example: '-p /SegTree/')
test opts='':
cabal test --enable-tests --test-options '{{opts}}'
[private]
alias t := test
touch:
touch verify/app/*
[private]
alias to := touch
# runs local test for a online judge problem
verify:
cd verify && ./script/verify
[private]
alias v := verify
# runs local test for all of the online judge problems
verify-all:
cd verify && touch app/* && ./script/verify-all
[private]
alias va := verify-all