Skip to content

Commit

Permalink
Upgrade ocamlformat
Browse files Browse the repository at this point in the history
  • Loading branch information
clarus committed Jan 4, 2023
1 parent aa9b914 commit 98a2733
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
ocaml-version: ${{ matrix.ocaml-version }}

- run: opam install ocamlformat.0.18.0
- run: opam install ocamlformat.0.22.4
- run: opam exec -- make fmt-check
- run: opam pin add coq ${{ matrix.coq-version }}
- run: opam pin add coq-of-ocaml.dev . --no-action
Expand Down
2 changes: 1 addition & 1 deletion .ocamlformat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.20.1
version=0.22.4
5 changes: 2 additions & 3 deletions src/adtConstructors.ml
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,8 @@ let of_ocaml_case (typ_name : Name.t) (attributes : Attribute.t list)
let typs = List.map (fun t -> fst t) typs in
return (typs, new_typ_vars)
| _ ->
raise
([ ty ], new_typ_vars)
Error.Category.Unexpected "Unexpected Type of Constructor")
raise ([ ty ], new_typ_vars) Error.Category.Unexpected
"Unexpected Type of Constructor")
| None ->
let kind = if is_tagged then Kind.Tag else Kind.Set in
let typ_args = AdtParameters.get_parameters defined_typ_params in
Expand Down
2 changes: 1 addition & 1 deletion src/structure.ml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ let wrap_documentation (items : t list Monad.t) : t list Monad.t =
match documentation with
| None -> items
| Some documentation ->
let* items in
let* items = items in
return [ Documentation (documentation, items) ]

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

0 comments on commit 98a2733

Please sign in to comment.