module tut2_4 // ******************************************************************************** // Clean tutorial example program. // // This program creates a dialog that displays the "Hello world!" text. // ******************************************************************************** import StdEnv, StdIO Start :: *World -> *World Start world = startIO NDI Void initialise [] world where initialise pst # (error,pst) = openDialog Void hello pst | error<>NoError = closeProcess pst | otherwise = pst hello = Dialog "" ( TextControl "Hello world!" [] ) [ WindowClose (noLS closeProcess) ]