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.
-
MissingH System.IO.HVIO The reading side of a Haskell pipe. Please see newHVIOPipe for more details.
-
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.
newStreamReader :: String -> IO StreamReaderMissingH System.IO.HVIO Create a new StreamReader object.
vIsReadable :: HVIO a => a -> IO BoolMissingH System.IO.HVIO Indicate whether a particular item is available for reading.
vReady :: HVIO a => a -> IO BoolMissingH System.IO.HVIO Indicate whether at least one item is ready for reading. This will always be True for a great many implementations.
class Arrow a =>
ArrowReader r (a :: Type -> Type -> Type) | a -> rarrows Control.Arrow.Operations An arrow type that provides a read-only state (an environment). If you also need to modify the state, use ArrowState.
newReader :: ArrowReader r a => a e b -> a (e, r) barrows 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
-
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 withinstance ArrowAddReader r a a' => ArrowAddReader r (FooArrow a) (FooArrow a')
elimReader :: ArrowAddReader r a a' => a e b -> a' (e, r) barrows 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
liftReader :: ArrowAddReader r a a' => a' e b -> a e barrows 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|)