hactors-0.0.3.1: Practical actors for Haskell.
Control.Concurrent.Actor.Examples
Contents
Synopsis
spawn_1 :: IO ()Source
Using spawn.
spawn
data Child Source
Make an initial argument type.
Constructors
actor_1 :: IO ()Source
Using actor.
actor
dolphin :: String -> IO ()Source
There is some Erlang code from the "Learn You Some Erlang" book:
dolphin() -> receive do_a_flip -> io:format("How about no?~n"); fish -> io:format("So long and thanks for all the fish!~n"); _ -> io:format("Heh, we're smarter than you humans.~n") end
test_dolphin :: IO ()Source