Skip to content

Commit 3d35221

Browse files
committed
Explicitly match on Nothing.
1 parent 8c100bf commit 3d35221

File tree

1 file changed

+2
-2
lines changed
  • packages/distributed-process-fsm/src/Control/Distributed/Process/FSM

1 file changed

+2
-2
lines changed

packages/distributed-process-fsm/src/Control/Distributed/Process/FSM/Client.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ callTimeout pid msg ti = bracket (monitor pid) unmonitor $ \mRef -> do
8080
Just m -> do mR <- unwrapMessage m
8181
case mR of
8282
Just r -> return $ Just r
83-
_ -> die $ ExitOther $ baseErr ++ ".Client:InvalidResponseType"
83+
Nothing -> die $ ExitOther $ baseErr ++ ".Client:InvalidResponseType"
8484

8585
-- | Make a synchronous /call/ to the FSM process at "ProcessId". If a
8686
-- "Step" exists that upon receiving an event of type @m@ will eventually
@@ -98,4 +98,4 @@ call pid msg = bracket (monitor pid) unmonitor $ \mRef -> do
9898
mR <- unwrapMessage msg'
9999
case mR of
100100
Just r -> return r
101-
_ -> die $ ExitOther $ baseErr ++ ".Client:InvalidResponseType"
101+
Nothing -> die $ ExitOther $ baseErr ++ ".Client:InvalidResponseType"

0 commit comments

Comments
 (0)