Safe Haskell | None |
---|---|
Language | Haskell2010 |
Run processed connected to Top
- runAppForever :: (Model (router a), Flat (router a), Show (router a), Flat a, Show a) => Config -> router a -> App a r -> IO r
- runApp :: (Model (router a), Flat (router a), Show (router a), Flat a, Show a) => Config -> router a -> App a r -> IO r
- runAppWith :: Config -> TypedBLOB -> App ByteString r -> IO r
Documentation
:: (Model (router a), Flat (router a), Show (router a), Flat a, Show a) | |
=> Config | Top configuration |
-> router a | Routing protocol |
-> App a r | Application to connect |
-> IO r | Value returned from the application |
Permanently connect an application to a typed channel. |Restart application in case of network or application failure. |NOTE: does not provide a way to preserve application's state
:: (Model (router a), Flat (router a), Show (router a), Flat a, Show a) | |
=> Config | Top configuration |
-> router a | Routing protocol |
-> App a r | Application to connect |
-> IO r | Value returned from the application |
Connect an application to a typed channel.
:: Config | Top configuration |
-> TypedBLOB | Routing protocol |
-> App ByteString r | Application to connect |
-> IO r | Value returned from the application |
Connect an application to a typed channel