From c6265278f05aa4d3af60e420f2d4d13e4bce8ad7 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 3 Dec 2021 04:19:53 +0100 Subject: Removed the application mecanism from the state module --- editor/app/editor_app.mli | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 editor/app/editor_app.mli (limited to 'editor/app/editor_app.mli') diff --git a/editor/app/editor_app.mli b/editor/app/editor_app.mli new file mode 100644 index 0000000..3c7646b --- /dev/null +++ b/editor/app/editor_app.mli @@ -0,0 +1,14 @@ +module type Event = sig + + type t + + val update: t -> State.t -> State.t + +end + +type event = E : 'a * (module Event with type t = 'a) -> event + +(** Simple helper for the main event loop *) +val run + : ?eq:(State.t -> State.t -> bool) -> State.t -> event Note.E.t -> State.t Note.S.t + -- cgit v1.2.3