summaryrefslogtreecommitdiff
path: root/editor/app/editor_app.mli
diff options
context:
space:
mode:
Diffstat (limited to 'editor/app/editor_app.mli')
-rw-r--r--editor/app/editor_app.mli14
1 files changed, 14 insertions, 0 deletions
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
+