Hoogle Search

Within LTS Haskell 22.18 (ghc-9.6.4)

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

  1. read :: Read a => String -> a

    base 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
    

  2. read :: Read a => String -> a

    base Text.Read

    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
    

  3. read :: RawIO a => a -> Ptr Word8 -> Word64 -> Int -> IO Int

    base GHC.IO.Device

    Read up to the specified number of bytes starting from a specified offset, returning the number of bytes actually read. This function should only block if there is no data available. If there is not enough data available, then the function should just return the available data. A return value of zero indicates that the end of the data stream (e.g. end of file) has been reached.

  4. read :: MArray s a -> Int -> ST s a

    unordered-containers Data.HashMap.Internal.Array

    No documentation available.

  5. read :: (HasCallStack, PrimMonad m, MVector v a) => v (PrimState m) a -> Int -> m a

    vector Data.Vector.Generic.Mutable

    Yield the element at the given position. Will throw an exception if the index is out of range.

    Examples

    >>> import qualified Data.Vector.Mutable as MV
    
    >>> v <- MV.generate 10 (\x -> x*x)
    
    >>> MV.read v 3
    9
    

  6. read :: PrimMonad m => MVector (PrimState m) a -> Int -> m a

    vector Data.Vector.Mutable

    Yield the element at the given position. Will throw an exception if the index is out of range.

    Examples

    >>> import qualified Data.Vector.Mutable as MV
    
    >>> v <- MV.generate 10 (\x -> x*x)
    
    >>> MV.read v 3
    9
    

  7. read :: (PrimMonad m, Prim a) => MVector (PrimState m) a -> Int -> m a

    vector Data.Vector.Primitive.Mutable

    Yield the element at the given position. Will throw an exception if the index is out of range.

    Examples

    >>> import qualified Data.Vector.Primitive.Mutable as MVP
    
    >>> v <- MVP.generate 10 (\x -> x*x)
    
    >>> MVP.read v 3
    9
    

  8. read :: (PrimMonad m, Storable a) => MVector (PrimState m) a -> Int -> m a

    vector Data.Vector.Storable.Mutable

    Yield the element at the given position. Will throw an exception if the index is out of range.

    Examples

    >>> import qualified Data.Vector.Storable.Mutable as MVS
    
    >>> v <- MVS.generate 10 (\x -> x*x)
    
    >>> MVS.read v 3
    9
    

  9. read :: (PrimMonad m, Unbox a) => MVector (PrimState m) a -> Int -> m a

    vector Data.Vector.Unboxed.Mutable

    Yield the element at the given position. Will throw an exception if the index is out of range.

    Examples

    >>> import qualified Data.Vector.Unboxed.Mutable as MVU
    
    >>> v <- MVU.generate 10 (\x -> x*x)
    
    >>> MVU.read v 3
    9
    

  10. read :: Read a => String -> a

    amazonka-core Amazonka.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
    

Page 1 of many | Next