Skip to content

Commit 651c33b

Browse files
committed
Upgrade ocamlformat
1 parent aa9b914 commit 651c33b

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
ocaml-version: ${{ matrix.ocaml-version }}
3535

36-
- run: opam install ocamlformat.0.18.0
36+
- run: opam install ocamlformat.0.22.4
3737
- run: opam exec -- make fmt-check
3838
- run: opam pin add coq ${{ matrix.coq-version }}
3939
- run: opam pin add coq-of-ocaml.dev . --no-action

.ocamlformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.20.1
1+
version=0.22.4

src/adtConstructors.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,8 @@ let of_ocaml_case (typ_name : Name.t) (attributes : Attribute.t list)
176176
let typs = List.map (fun t -> fst t) typs in
177177
return (typs, new_typ_vars)
178178
| _ ->
179-
raise
180-
([ ty ], new_typ_vars)
181-
Error.Category.Unexpected "Unexpected Type of Constructor")
179+
raise ([ ty ], new_typ_vars) Error.Category.Unexpected
180+
"Unexpected Type of Constructor")
182181
| None ->
183182
let kind = if is_tagged then Kind.Tag else Kind.Set in
184183
let typ_args = AdtParameters.get_parameters defined_typ_params in

src/constant.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ let rec to_coq_s (need_parens : bool) (xs : parsed_string list) : SmartPrint.t =
7878
| PChar c :: xs ->
7979
let res = npchar c ^^ nest @@ to_coq_s true xs in
8080
if need_parens then parens res else res
81-
| PDQuote :: xs -> to_coq_s need_parens @@ PString "\"\"" :: xs
81+
| PDQuote :: xs -> to_coq_s need_parens @@ (PString "\"\"" :: xs)
8282
| PString s :: PDQuote :: xs ->
83-
to_coq_s need_parens @@ PString (s ^ "\"\"") :: xs
83+
to_coq_s need_parens @@ (PString (s ^ "\"\"") :: xs)
8484
| PString s1 :: PString s2 :: xs ->
85-
to_coq_s need_parens @@ PString (s1 ^ s2) :: xs
85+
to_coq_s need_parens @@ (PString (s1 ^ s2) :: xs)
8686
| [ PString s ] -> double_quotes !^s
8787
| PString s :: xs -> double_quotes !^s ^^ !^"++" ^^ nest @@ to_coq_s false xs
8888

src/structure.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ let wrap_documentation (items : t list Monad.t) : t list Monad.t =
210210
match documentation with
211211
| None -> items
212212
| Some documentation ->
213-
let* items in
213+
let* items = items in
214214
return [ Documentation (documentation, items) ]
215215

216216
let top_level_evaluation (e : expression) : t list Monad.t =

0 commit comments

Comments
 (0)