Skip to content

Commit 91460fe

Browse files
Merge pull request #35 from Abhiroop/master
Update 3ch.md
2 parents ab2f241 + c8d5376 commit 91460fe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: tutorials/3ch.md

+5-2
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
66-
second <- expectTimeout 100000 :: Process String
67-
mapM_ (say . show) [first, second, third]
67+
second <- expectTimeout 100000 :: Process (Maybe String)
68+
(say . show) first
69+
(say . show) second
70+
(say . show) third
6871
send third ()
6972
{% endhighlight %}
7073

0 commit comments

Comments
 (0)