| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Distrib.Butter.Lang
Documentation
data Action (m :: * -> *) next where Source #
Constructors
| Lift :: m a -> (a -> next) -> Action m next | |
| Connect :: Text -> Text -> Int -> next -> Action m next | |
| Spawn :: Butter m () -> (ProcessID -> next) -> Action m next | |
| Send :: ProcessID -> ByteString -> next -> Action m next | |
| Receive :: (ByteString -> next) -> Action m next | |
| Friends :: ([Text] -> next) -> Action m next | |
| Self :: (ProcessID -> next) -> Action m next | |
| Alive :: ProcessID -> (Bool -> next) -> Action m next | |
| Name :: Text -> next -> Action m next |
spreadLocal :: (MonadIO m, ForkableMonad m, ToJSON a, FromJSON a) => Butter m a -> m a Source #