Hoogle Search

Within LTS Haskell 20.8 (ghc-9.2.5)

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 :: (PrimMonad m, MVector v a) => v (PrimState m) a -> Int -> m a

    vector Data.Vector.Generic.Mutable

    Yield the element at the given position.

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

    vector Data.Vector.Mutable

    Yield the element at the given position.

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

    vector Data.Vector.Primitive.Mutable

    Yield the element at the given position.

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

    vector Data.Vector.Storable.Mutable

    Yield the element at the given position.

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

    vector Data.Vector.Unboxed.Mutable

    Yield the element at the given position.

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

    unordered-containers Data.HashMap.Internal.Array

    No documentation available.

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

    base-compat Text.Read.Compat

    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