Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
base GHC.IO.IOMode No documentation available.
type
ReadS a = String -> [(a, String)]base GHC.Read A parser for a type a, represented as a function that takes a String and returns a list of possible parses as (a,String) pairs. Note that this kind of backtracking parser is very inefficient; reading a large structure may be quite slow (cf ReadP).
type
Reader a = Text -> Either String (a, Text)text Data.Text.Lazy.Read Read some text. If the read succeeds, return its value and the remaining text, otherwise an error message.
type
Reader a = Text -> Either String (a, Text)text Data.Text.Read Read some text. If the read succeeds, return its value and the remaining text, otherwise an error message.
module Control.Monad.Trans.
Reader Declaration of the ReaderT monad transformer, which adds a static environment to a given monad. If the computation is to modify the stored information, use Control.Monad.Trans.State instead.
type
Reader r = ReaderT r Identitytransformers Control.Monad.Trans.Reader The parameterizable reader monad. Computations are functions of a shared environment. The return function ignores the environment, while m >>= k passes the inherited environment to both subcomputations:
newtype
ReaderT r (m :: Type -> Type) atransformers Control.Monad.Trans.Reader The reader monad transformer, which adds a read-only environment to the given monad. The return function ignores the environment, while m >>= k passes the inherited environment to both subcomputations:
ReaderT :: (r -> m a) -> ReaderT r (m :: Type -> Type) atransformers Control.Monad.Trans.Reader No documentation available.
-
- Computation type: Computations which read values from a shared environment.
- Binding strategy: Monad values are functions from the environment to a value. The bound function is applied to the bound value, and both have access to the shared environment.
- Useful for: Maintaining variable bindings, or other shared environment.
- Zero and plus: None.
- Example type: Reader [(String,Value)] a
type
Reader r = ReaderT r Identitymtl Control.Monad.Reader The parameterizable reader monad. Computations are functions of a shared environment. The return function ignores the environment, while m >>= k passes the inherited environment to both subcomputations: