Skip to content

Commit

Permalink
Adding .ocamlformat file at the root of the project
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Santamaria <gaby.santamaria@outlook.fr>
  • Loading branch information
gabyfle committed May 8, 2024
1 parent b79d5d4 commit a4775c6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:
- name: Install OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "4.14"
ocaml-compiler: "5.1"
dune-cache: true

- uses: ocaml/setup-ocaml/lint-fmt@v2

Expand Down
3 changes: 3 additions & 0 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
profile = ocamlformat
wrap-comments = true
version = 0.26.1
9 changes: 5 additions & 4 deletions doc/ocaml/playground.ml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@

open Js_of_ocaml

let exec_string (str: string) =
let exec_string (str : string) =
let state = Lice.LState.empty in
let state = Lice.LState.do_string state str in
state

let _ =
Js.export "Lice"
(object%js
method doString (code: string) = exec_string code
method bytecodeViewer = Lice.bytecode_viewer
end)
method doString (code : string) = exec_string code

method bytecodeViewer = Lice.bytecode_viewer
end )

0 comments on commit a4775c6

Please sign in to comment.