Skip to content

Commit 8e26c9e

Browse files
RCmercitiensonqin
authored andcommitted
add .ocamlformat
1 parent f713965 commit 8e26c9e

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

.ocamlformat

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version=0.16.0
2+
break-separators=before
3+
dock-collection-brackets=false
4+
break-sequences=true
5+
doc-comments=before
6+
field-space=loose
7+
let-and=sparse
8+
sequence-style=terminator
9+
type-decl=sparse
10+
wrap-comments=false
11+
if-then-else=k-r
12+
let-and=sparse
13+
space-around-records
14+
space-around-lists
15+
space-around-arrays
16+
cases-exp-indent=2
17+
break-cases=all
18+
indicate-nested-or-patterns=unsafe-no

makefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ test:
1111
$(DUNE) runtest
1212

1313
clean:
14-
rm -rf _build
15-
14+
dune clean
1615
run:
1716
$(DUNE) exec ./bin/main.exe
1817

1918
bench:
2019
$(DUNE) exec ./bench/bench.exe
2120

22-
.PHONY: pin test all clean check bench
21+
fmt:
22+
dune build @fmt --auto-promote
23+
24+
.PHONY: pin test all clean check bench fmt

0 commit comments

Comments
 (0)