Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

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

  1. readRawBufferPtrNoBlock :: String -> FD -> Ptr Word8 -> Int -> CSize -> IO Int

    ghc-internal GHC.Internal.IO.FD

    No documentation available.

  2. readTextDevice :: Handle__ -> CharBuffer -> IO CharBuffer

    ghc-internal GHC.Internal.IO.Handle.Internals

    No documentation available.

  3. readTextDeviceNonBlocking :: Handle__ -> CharBuffer -> IO CharBuffer

    ghc-internal GHC.Internal.IO.Handle.Internals

    No documentation available.

  4. readIOArray :: Ix i => IOArray i e -> i -> IO e

    ghc-internal GHC.Internal.IOArray

    Read a value from an IOArray

  5. readIORef :: IORef a -> IO a

    ghc-internal GHC.Internal.IORef

    Read the value of an IORef. Beware that the CPU executing a thread can reorder reads or writes to independent locations. See Data.IORef#memmodel for more details.

  6. readMVar :: MVar a -> IO a

    ghc-internal GHC.Internal.MVar

    Atomically read the contents of an MVar. If the MVar is currently empty, readMVar will wait until it is full. readMVar is guaranteed to receive the next putMVar. readMVar is multiple-wakeup, so when multiple readers are blocked on an MVar, all of them are woken up at the same time. The runtime guarantees that all woken threads complete their readMVar operation. Compatibility note: Prior to base 4.7, readMVar was a combination of takeMVar and putMVar. This mean that in the presence of other threads attempting to putMVar, readMVar could block. Furthermore, readMVar would not receive the next putMVar if there was already a pending thread blocked on takeMVar. The old behavior can be recovered by implementing 'readMVar as follows:

    readMVar :: MVar a -> IO a
    readMVar m =
    mask_ $ do
    a <- takeMVar m
    putMVar m a
    return a
    

  7. readBin :: (Eq a, Num a) => ReadS a

    ghc-internal GHC.Internal.Numeric

    Read an unsigned number in binary notation.

    >>> readBin "10011"
    [(19,"")]
    

  8. readDec :: (Eq a, Num a) => ReadS a

    ghc-internal GHC.Internal.Numeric

    Read an unsigned number in decimal notation.

    >>> readDec "0644"
    [(644,"")]
    

  9. readFloat :: RealFrac a => ReadS a

    ghc-internal GHC.Internal.Numeric

    Reads an unsigned RealFrac value, expressed in decimal scientific notation. Note that this function takes time linear in the magnitude of its input which can scale exponentially with input size (e.g. "1e100000000" is a very large number while having a very small textual form). For this reason, users should take care to avoid using this function on untrusted input. Users needing to parse floating point values (e.g. Float) are encouraged to instead use read, which does not suffer from this issue.

  10. readHex :: (Eq a, Num a) => ReadS a

    ghc-internal GHC.Internal.Numeric

    Read an unsigned number in hexadecimal notation. Both upper or lower case letters are allowed.

    >>> readHex "deadbeef"
    [(3735928559,"")]
    

Page 191 of many | Previous | Next