-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
41 lines (33 loc) · 762 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
41 lines (33 loc) · 762 Bytes
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
version: "3"
tasks:
build:
desc: Build the project with Cabal
cmds:
- cabal build
test:
desc: Run the test suite (if present)
cmds:
- cabal test
haddock:
desc: Build Haddock documentation
cmds:
- cabal haddock
install-tools:
desc: Install lint/format tools via cabal
cmds:
- cabal install hlint ormolu cabal-fmt --ghc-options=-O0 -j
lint:
desc: Run hlint over src and app
cmds:
- hlint src app
format:
desc: Format Haskell sources with Ormolu
cmds:
- ormolu -m inplace $(find src app -name '*.hs')
cabalfmt:
desc: Format the cabal file
cmds:
- cabal-fmt -i haskell-agent.cabal
fmt:
desc: Run all formatters
deps: [format, cabalfmt]