Skip to content

Commit

Permalink
update ocamlformat
Browse files Browse the repository at this point in the history
  • Loading branch information
dmmulroy committed Feb 17, 2024
1 parent 0ecd16e commit ada13d2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
profile = default
let-binding-spacing=double-semicolon
break-infix-before-func=true
version = 0.26.1
2 changes: 1 addition & 1 deletion src/bindings/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
(library
(name bindings)
(modes melange)
(libraries melange.js melange.node reason-react)
(libraries melange.js melange.node reason-react)
(preprocess
(pps melange.ppx reason-react-ppx)))
2 changes: 1 addition & 1 deletion src/bindings/promise/promise.mli
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ val bind : 'value t -> ('value -> 'next_value t) -> 'next_value t
val tap : ('value -> unit) -> 'value t -> 'value t
(** [tap fn promise] applies [fn] to the result of [promise], returning the original promise. *)

val perform : ('value -> unit) -> 'value t -> unit
val perform : ('value -> unit) -> 'value t -> unit
(** [perform fn promise] applies [fn] to the result of [promise], returning [unit]. *)

(** Module containing syntax extensions for promises. *)
Expand Down
3 changes: 1 addition & 2 deletions src/bindings/promise/promise_result.mli
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ val tap :
(('value, 'error) result -> unit) -> ('value, 'error) t -> ('value, 'error) t
(** [tap fn promise_result] applies [fn] to the result of [promise_result] and returns the original promise. *)

val perform :
(('value, 'error) result -> unit) -> ('value, 'error) t -> unit
val perform : (('value, 'error) result -> unit) -> ('value, 'error) t -> unit
(** [perform fn promise_result] applies [fn] to the result of [promise_result] and returns unit. *)

val is_ok : ('value, 'error) t -> bool Promise.t
Expand Down
3 changes: 2 additions & 1 deletion src/core/configuration.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ let syntax_preference_to_string = function
;;

let syntax_preference_of_string str =
str |> String.lowercase_ascii |> function
str |> String.lowercase_ascii
|> function
| "ocaml" -> `OCaml
| "reasonml" -> `ReasonML
| _ -> failwith "Invalid syntax preference"
Expand Down
1 change: 1 addition & 0 deletions src/ocaml_install/ocaml_install.re
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit ada13d2

Please sign in to comment.