Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readParen :: Bool -> ReadS a -> ReadS aprelude-compat Prelude2010 readParen True p parses what p parses, but surrounded with parentheses. readParen False p parses what p parses, but optionally surrounded with parentheses.
-
prelude-compat Prelude2010 equivalent to readsPrec with a precedence of 0.
readsPrec :: Read a => Int -> ReadS aprelude-compat Prelude2010 attempts to parse a value from the front of the string, returning a list of (parsed value, remaining string) pairs. If there is no successful parse, the returned list is empty. Derived instances of Read and Show satisfy the following:
That is, readsPrec parses the string produced by showsPrec, and delivers the value that showsPrec started with.readPrec :: (Vector v a, Read a) => ReadPrec (v a)rebase Rebase.Data.Vector.Generic No documentation available.
readMaybe :: (PrimMonad m, MVector v a) => v (PrimState m) a -> Int -> m (Maybe a)rebase Rebase.Data.Vector.Generic.Mutable No documentation available.
readMaybe :: PrimMonad m => MVector (PrimState m) a -> Int -> m (Maybe a)rebase Rebase.Data.Vector.Mutable No documentation available.
readMaybe :: (PrimMonad m, Prim a) => MVector (PrimState m) a -> Int -> m (Maybe a)rebase Rebase.Data.Vector.Primitive.Mutable No documentation available.
readMaybe :: (PrimMonad m, Storable a) => MVector (PrimState m) a -> Int -> m (Maybe a)rebase Rebase.Data.Vector.Storable.Mutable No documentation available.
readMaybe :: (PrimMonad m, Unbox a) => MVector (PrimState m) a -> Int -> m (Maybe a)rebase Rebase.Data.Vector.Unboxed.Mutable No documentation available.
readEither :: Read a => String -> Either String arebase Rebase.Prelude Parse a string using the Read instance. Succeeds if there is exactly one valid result. A Left value indicates a parse error.
>>> readEither "123" :: Either String Int Right 123
>>> readEither "hello" :: Either String Int Left "Prelude.read: no parse"