Skip to content

Commit

Permalink
Updated examples to riot 0.0.9 added explicit minttea config
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcavanillas committed Apr 17, 2024
1 parent 004e252 commit 5639d09
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(description "A longer description")
(depends
(ocaml (>= "5.1"))
(riot (= "0.0.8"))
(riot (= "0.0.9"))
(mdx (and :with-test (>= "2.3.1")))
(tty (>= "0.0.2"))
uuseg)
Expand Down
2 changes: 1 addition & 1 deletion examples/text-wrapping/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ let view model =
@@ show @@ Text_input.view model.text

let app = Minttea.app ~init ~update ~view ()
let () = Minttea.start ~initial_model app
let () = Minttea.start ~config:(config ~render_mode: `clear ~fps: 60 ()) ~initial_model app
2 changes: 1 addition & 1 deletion examples/word-wrapping/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ let view model =
@@ show 12 @@ Text_input.current_text model.text

let app = Minttea.app ~init ~update ~view ()
let () = Minttea.start ~initial_model app
let () = Minttea.start ~config:(config ~render_mode: `clear ~fps: 60 ()) ~initial_model app
2 changes: 1 addition & 1 deletion minttea.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bug-reports: "https://github.com/leostera/minttea/issues"
depends: [
"dune" {>= "3.11"}
"ocaml" {>= "5.1"}
"riot" {= "0.0.8"}
"riot" {= "0.0.9"}
"mdx" {with-test & >= "2.3.1"}
"tty" {>= "0.0.2"}
"uuseg"
Expand Down

0 comments on commit 5639d09

Please sign in to comment.