I'm doing an app using F# and I wonder if I could a) Keep the state under the State computation expression (using FSharpx's implementation) and b) be able to modify the state asynchronously (handling the user's input).
I believe I know how to handle each problem separately; either:
- Keep the state in mutable variables and use async & MailboxProcessor to receive async requests to modify the state
- Use the state computation expression but not being able to process the user input.
How could I use both the state and the async computation expressions in FSharp or Haskell?