Hoogle Search

Within LTS Haskell 24.68 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. data PipeReader

    MissingH System.IO.HVIO

    The reading side of a Haskell pipe. Please see newHVIOPipe for more details.

  2. data StreamReader

    MissingH System.IO.HVIO

    Simulate I/O based on a string buffer. When a StreamReader is created, it is initialized based on the contents of a String. Its contents are read lazily whenever a request is made to read something from the StreamReader. It can be used, therefore, to implement filters (simply initialize it with the result from, say, a map over hGetContents from another HVIO object), codecs, and simple I/O testing. Because it is lazy, it need not hold the entire string in memory. You can create a StreamReader with a call to newStreamReader.

  3. newStreamReader :: String -> IO StreamReader

    MissingH System.IO.HVIO

    Create a new StreamReader object.

  4. vIsReadable :: HVIO a => a -> IO Bool

    MissingH System.IO.HVIO

    Indicate whether a particular item is available for reading.

  5. vReady :: HVIO a => a -> IO Bool

    MissingH System.IO.HVIO

    Indicate whether at least one item is ready for reading. This will always be True for a great many implementations.

  6. class Arrow a => ArrowReader r (a :: Type -> Type -> Type) | a -> r

    arrows Control.Arrow.Operations

    An arrow type that provides a read-only state (an environment). If you also need to modify the state, use ArrowState.

  7. newReader :: ArrowReader r a => a e b -> a (e, r) b

    arrows Control.Arrow.Operations

    Run a subcomputation in the same arrow, but with a different environment. The environment of the outer computation is unaffected. Typical usage in arrow notation:

    proc p -> ...
    (|newReader cmd|) env
    

  8. class (ArrowReader r a, Arrow a') => ArrowAddReader r (a :: Type -> Type -> Type) (a' :: Type -> Type -> Type) | a -> a'

    arrows Control.Arrow.Transformer.Reader

    Adding a ReaderArrow to an arrow type, but not necessarily as the outer arrow transformer. Typically a composite arrow type is built by applying a series of arrow transformer to a base arrow (usually either a function arrow or a Kleisli arrow. One can add a transformer to the top of this stack using the lift method of the ArrowTransformer class, or remove a state transformer from the top of the stack using the runReader encapsulation operator. The methods of this class add and remove state transformers anywhere in the stack. In the instance

    instance Arrow a => ArrowAddReader r (ArrowReader r a) a
    
    they are equivalent to lift and runReader respectively. Instances are lifted through other transformers with
    instance ArrowAddReader r a a' =>
    ArrowAddReader r (FooArrow a) (FooArrow a')
    

  9. elimReader :: ArrowAddReader r a a' => a e b -> a' (e, r) b

    arrows Control.Arrow.Transformer.Reader

    Elimination of a state reader from a computation, taking a value for the state. Typical usage in arrow notation:

    proc p -> ...
    (|elimReader cmd|) env
    

  10. liftReader :: ArrowAddReader r a a' => a' e b -> a e b

    arrows Control.Arrow.Transformer.Reader

    Lift a computation from an arrow to one with an added environment. Typical usage in arrow notation:

    proc p -> ...
    (|liftReader cmd|)
    

Page 548 of many | Previous | Next