Skip to content

Commit c8d5376

Browse files
authored
Update 3ch.md
1 parent 18991ec commit c8d5376

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tutorials/3ch.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,15 @@ demo = do
5959
send listener "hello"
6060
getSelfPid >>= send listener
6161
() <- expect
62+
return ()
6263
where
6364
listen = do
6465
third <- expect :: Process ProcessId
6566
first <- expect :: Process String
6667
second <- expectTimeout 100000 :: Process (Maybe String)
67-
mapM_ (say . show) [first, second, third]
68+
(say . show) first
69+
(say . show) second
70+
(say . show) third
6871
send third ()
6972
{% endhighlight %}
7073

0 commit comments

Comments
 (0)