| Copyright | (c) Matthew Naylor 2019 |
|---|---|
| License | MIT |
| Maintainer | mattfn@gmail.com |
| Stability | experimental |
| Safe Haskell | Safe-Inferred |
| Language | GHC2021 |
Blarney.Stream
Description
Documentation
Source type. A Source t Interface returns values of type t via
its $sel:peek:Source method and flow control through its $sel:canPeek:Source and $sel:consume:Source
methods.
Constructors
| Source | |
Fields
| |
Instances
| Functor Source # | |
| Generic (Source t) # | |
| Interface t => Interface (Source t) # | |
| ToSource (Source t) t # | |
| Connectable (Source t) (Sink t) # |
|
Defined in Blarney.SourceSink | |
| ToSP (SP t0 t1) t0 t1 # | ToSP instance for StreamProcessor itself |
| ToSP (Sink t0, Source t1) t0 t1 # | ToSP instance for (Sink, Source) pairs |
| type Rep (Source t) # | |
Defined in Blarney.SourceSink type Rep (Source t) = D1 ('MetaData "Source" "Blarney.SourceSink" "blarney-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Source" 'PrefixI 'True) (S1 ('MetaSel ('Just "canPeek") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Bit 1)) :*: (S1 ('MetaSel ('Just "peek") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 t) :*: S1 ('MetaSel ('Just "consume") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Action ()))))) | |
nullStream :: Bits a => Stream a Source #
Null stream