aboutsummaryrefslogtreecommitdiff
path: root/tut11_3_2_stopwatch.dcl
diff options
context:
space:
mode:
authorCamil Staps2015-08-23 17:31:44 +0200
committerCamil Staps2015-08-23 17:31:44 +0200
commitf64444fb2a67ee84e973d894fbad7e2222a7767a (patch)
treebba2f2994a61830747e9619453e2c33fbbebd559 /tut11_3_2_stopwatch.dcl
parentTut 12.1 Simple clipboard editor (diff)
Tut 6.7 (mousespotting, keyspotting); tut 11.3.2 (stopwatch)
Diffstat (limited to 'tut11_3_2_stopwatch.dcl')
-rw-r--r--tut11_3_2_stopwatch.dcl15
1 files changed, 15 insertions, 0 deletions
diff --git a/tut11_3_2_stopwatch.dcl b/tut11_3_2_stopwatch.dcl
new file mode 100644
index 0000000..89dbd45
--- /dev/null
+++ b/tut11_3_2_stopwatch.dcl
@@ -0,0 +1,15 @@
+definition module tut11_3_2_stopwatch
+
+// ********************************************************************************
+// Clean tutorial example program.
+//
+// This module exports the types and functions needed to incorporate a stopwatch
+// component.
+// ********************************************************************************
+
+import StdIO
+
+:: StopwatchCommands = Reset | Pause | Continue | Close
+
+stopwatch :: (RId StopwatchCommands) -> Process
+