SamuelSchlesinger / stm-actor

An implementation of the actor model in Haskell using STM
MIT License
16 stars 3 forks source link

Added a MonadUnliftIO instance for ActionT #7

Closed SamuelSchlesinger closed 3 years ago

SamuelSchlesinger commented 3 years ago

As pointed out in https://www.reddit.com/r/haskell/comments/iwu6y0/ann_stmactor_stmqueue/g6q3ntb?utm_source=share&utm_medium=web2x&context=3, it makes sense to have a MonadUnliftIO instance for ActionT, so that we can use the unliftio package for various contravariant concurrency and error handling primitives abstracted over all MonadUnliftIO things. Thankfully, this package is factored out in a nice way that allows us to only depend on the much smallerunliftio-core package.

SamuelSchlesinger commented 3 years ago

Green build, merging! Not adding any tests for this because its just the same as any other MonadUnliftIO for a reader.