haskell-distributed / distributed-process-client-server

Cloud Haskell - gen_server implementation
http://haskell-distributed.github.io
BSD 3-Clause "New" or "Revised" License
13 stars 11 forks source link

Handle arbitrary STM actions #10

Closed hyperthunk closed 7 years ago

hyperthunk commented 7 years ago

This PR adds support for performing arbitrary STM actions that yield an input, then running a standard handler against them. The STM actions are handled as per matchSTM in the underlying distributed-process library, such that they are composed with all the other matchers (e.g., typed channel / port reading, and general mailbox handling of Call/Cast messages).

Note: Incomplete PR.