Skip to content

Commit 91eaf35

Browse files
committed
Merge pull request haskell-distributed#78 from BirdseyeSoftware/fix-typos
fix typos s/recieve/receive/
2 parents 3d6fb92 + d2bd456 commit 91eaf35

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/Control/Distributed/Process/Platform/Call.hs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,23 @@ multicall :: forall a b.(Serializable a, Serializable b)
7171
=> [ProcessId] -> a -> Tag -> Timeout -> Process [Maybe b]
7272
multicall nodes msg tag time =
7373
do caller <- getSelfPid
74-
reciever <- spawnLocal $
75-
do reciever_pid <- getSelfPid
74+
receiver <- spawnLocal $
75+
do receiver_pid <- getSelfPid
7676
mon_caller <- monitor caller
7777
() <- expect
7878
monitortags <- forM nodes monitor
7979
forM_ nodes $ \node -> send node (Multicall, node,
80-
reciever_pid, tag, msg)
81-
maybeTimeout time tag reciever_pid
80+
receiver_pid, tag, msg)
81+
maybeTimeout time tag receiver_pid
8282
results <- recv nodes monitortags mon_caller
8383
send caller (MulticallResponse,tag,results)
84-
mon_reciever <- monitor reciever
85-
send reciever ()
84+
mon_receiver <- monitor receiver
85+
send receiver ()
8686
receiveWait [
8787
matchIf (\(MulticallResponse,mtag,_) -> mtag == tag)
8888
(\(MulticallResponse,_,val) -> return val),
8989
matchIf (\(ProcessMonitorNotification ref _pid reason)
90-
-> ref == mon_reciever && reason /= DiedNormal)
90+
-> ref == mon_receiver && reason /= DiedNormal)
9191
(\_ -> error "multicall: unexpected termination of worker")
9292
]
9393
where

src/Control/Distributed/Process/Platform/ManagedProcess/Server.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ handleDispatchIf cond handler = DispatchIf {
498498
(CastMessage p) -> (h s p)
499499
(ChanMessage p _) -> (h s p)
500500

501-
-- | Creates a generic input handler (i.e., for recieved messages that are /not/
501+
-- | Creates a generic input handler (i.e., for received messages that are /not/
502502
-- sent using the 'cast' or 'call' APIs) from an ordinary function in the
503503
-- 'Process' monad.
504504
handleInfo :: forall s a. (Serializable a)

tests/Counter.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import GHC.Generics
3030
-- Call and Cast request types. Response types are unnecessary as the GenProcess
3131
-- API uses the Async API, which in turn guarantees that an async handle can
3232
-- /only/ give back a reply for that *specific* request through the use of an
33-
-- anonymous middle-man (as the sender and reciever in our case).
33+
-- anonymous middle-man (as the sender and receiver in our case).
3434

3535
data Increment = Increment
3636
deriving (Typeable, Generic, Eq, Show)

0 commit comments

Comments
 (0)