Hoogle Search
Within LTS Haskell 22.23 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
read :: (Monad m, Read a) => Stream (Of String) m r -> Stream (Of a) m rstreaming Streaming.Prelude Make a stream of strings into a stream of parsed values, skipping bad cases
>>> S.sum_ $ S.read $ S.takeWhile (/= "total") S.stdinLn :: IO Int 1000<Enter> 2000<Enter> total<Enter> 3000
-
numeric-prelude NumericPrelude The read function reads input from a string, which must be completely consumed by the input process. read fails with an error if the parse is unsuccessful, and it is therefore discouraged from being used in real applications. Use readMaybe or readEither for safe alternatives.
>>> read "123" :: Int 123
>>> read "hello" :: Int *** Exception: Prelude.read: no parse
-
numeric-prelude NumericPrelude.Base The read function reads input from a string, which must be completely consumed by the input process. read fails with an error if the parse is unsuccessful, and it is therefore discouraged from being used in real applications. Use readMaybe or readEither for safe alternatives.
>>> read "123" :: Int 123
>>> read "hello" :: Int *** Exception: Prelude.read: no parse
-
protolude Protolude.Partial The read function reads input from a string, which must be completely consumed by the input process. read fails with an error if the parse is unsuccessful, and it is therefore discouraged from being used in real applications. Use readMaybe or readEither for safe alternatives.
>>> read "123" :: Int 123
>>> read "hello" :: Int *** Exception: Prelude.read: no parse
-
basic-prelude BasicPrelude Parse Text to a value
read :: (Manifest r e, Index ix, PrimMonad m) => MArray (PrimState m) r ix e -> ix -> m (Maybe e)massiv Data.Massiv.Array.Mutable O(1) - Lookup an element in the mutable array. Returns Nothing when index is out of bounds.
-
numhask NumHask.Prelude The read function reads input from a string, which must be completely consumed by the input process. read fails with an error if the parse is unsuccessful, and it is therefore discouraged from being used in real applications. Use readMaybe or readEither for safe alternatives.
>>> read "123" :: Int 123
>>> read "hello" :: Int *** Exception: Prelude.read: no parse
-
prelude-compat Prelude2010 The read function reads input from a string, which must be completely consumed by the input process. read fails with an error if the parse is unsuccessful, and it is therefore discouraged from being used in real applications. Use readMaybe or readEither for safe alternatives.
>>> read "123" :: Int 123
>>> read "hello" :: Int *** Exception: Prelude.read: no parse
-
vector-sized Data.Vector.Generic.Mutable.Sized O(1) Yield the element at a given type-safe position using Finite.
read :: forall n m a . PrimMonad m => MVector n (PrimState m) a -> Finite n -> m avector-sized Data.Vector.Mutable.Sized O(1) Yield the element at a given type-safe position using Finite.