| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Distrib.Butter.Lang
Documentation
Instances
| Eq ProcessID # | |
| Show ProcessID # | |
| Generic ProcessID # | |
| ToJSON ProcessID # | |
Defined in Distrib.Butter.Lang | |
| FromJSON ProcessID # | |
| type Rep ProcessID # | |
Defined in Distrib.Butter.Lang type Rep ProcessID = D1 (MetaData "ProcessID" "Distrib.Butter.Lang" "butter-0.1.0.6-5jIx9do7nC321JHGYWNvlG" False) (C1 (MetaCons "PID" PrefixI True) (S1 (MetaSel (Just "machineID") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "processID") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) :+: C1 (MetaCons "Named" PrefixI True) (S1 (MetaSel (Just "hostname") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "processName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) | |
data Action (m :: * -> *) next where #
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 #