diff options
author | Camil Staps | 2015-08-23 17:34:13 +0200 |
---|---|---|
committer | Camil Staps | 2015-08-23 17:34:13 +0200 |
commit | 60513928f3211630db952a2229a822ce8830efc8 (patch) | |
tree | 307ab797a7c05d2d61e1395acf17bc8c03e134e9 | |
parent | Tut 6.7 (mousespotting, keyspotting); tut 11.3.2 (stopwatch) (diff) |
Tut 6.8; Hello world using Notice
-rw-r--r-- | tut6_8.icl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tut6_8.icl b/tut6_8.icl new file mode 100644 index 0000000..ed9b111 --- /dev/null +++ b/tut6_8.icl @@ -0,0 +1,16 @@ +module tut6_8 + +// ******************************************************************************** +// Clean tutorial example program. +// +// This program shows "Hello world!" using a Notice. +// ******************************************************************************** + +import StdEnv, StdIO +import Notice + +Start :: *World -> *World +Start world = startIO NDI Void (openNotice hello) [] world +where + hello = Notice ["Hello world!"] (NoticeButton "Quit" (noLS closeProcess)) [] + |