Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Marconi.Core.Transformer.WithStream.Streamable
Synopsis
- class Streamable a r where
Documentation
class Streamable a r where #
Something that can have mapped events streamed to or from it
Methods
streamFrom :: a -> Stream (Of r) IO () #
streamTo :: (Timed (Point event) event -> r) -> a -> Timed (Point event) event -> IO () #
Instances
Binary r => Streamable Socket r # | A streaming implementation using |
Streamable (TBQueue r) r # | An experimental streaming implementation using IMPORTANT: Note that this will block when used with For an example of how to use it, please see: testMarconi.CoreSpec.hspropWithStreamTBQueue |