peek

peek :: Storable a => Ptr a -> IO a
base Foreign.Storable
peekArray :: Storable a => Int -> Ptr a -> IO [a]
base Foreign.Marshal.Array
Convert an array of given length into a Haskell list. The implementation is tail-recursive and so uses constant stack space.
peekArray0 :: (Storable a, Eq a) => a -> Ptr a -> IO [a]
base Foreign.Marshal.Array
Convert an array terminated by the given end marker into a Haskell list
peekByteOff :: Storable a => Ptr b -> Int -> IO a
base Foreign.Storable
peekCAString :: CString -> IO String
base Foreign.C.String
Marshal a NUL terminated C string into a Haskell string.
peekCAStringLen :: CStringLen -> IO String
base Foreign.C.String
Marshal a C string with explicit length into a Haskell string.
peekCString :: CString -> IO String
base Foreign.C.String
Marshal a NUL terminated C string into a Haskell string.
peekCStringLen :: CStringLen -> IO String
base Foreign.C.String
Marshal a C string with explicit length into a Haskell string.
peekCWString :: CWString -> IO String
base Foreign.C.String
Marshal a NUL terminated C wide string into a Haskell string.
peekCWStringLen :: CWStringLen -> IO String
base Foreign.C.String
Marshal a C wide string with explicit length into a Haskell string.
peekElemOff :: Storable a => Ptr a -> Int -> IO a
base Foreign.Storable
peekCharBuf :: RawCharBuffer -> Int -> IO Char
base GHC.IO.Buffer
peekFilePath :: CString -> IO RawFilePath
unix System.Posix.ByteString.FilePath
peekFilePathLen :: CStringLen -> IO RawFilePath
unix System.Posix.ByteString.FilePath
peekSockAddr :: Ptr SockAddr -> IO SockAddr
network Network.Socket.Internal
Read a SockAddr from the given memory location.
peekTBQueue :: TBQueue a -> STM a
stm Control.Concurrent.STM.TBQueue
Get the next value from the TBQueue without removing it, retrying if the channel is empty.
peekTChan :: TChan a -> STM a
stm Control.Concurrent.STM.TChan
Get the next value from the TChan without removing it, retrying if the channel is empty.
peekTQueue :: TQueue a -> STM a
stm Control.Concurrent.STM.TQueue
Get the next value from the TQueue without removing it, retrying if the channel is empty.
maybePeek :: (Ptr a -> IO b) -> Ptr a -> IO (Maybe b)
base Foreign.Marshal.Utils
Convert a peek combinator into a one returning Nothing if applied to a nullPtr
tryPeekTBQueue :: TBQueue a -> STM (Maybe a)
stm Control.Concurrent.STM.TBQueue
A version of peekTBQueue which does not retry. Instead it returns Nothing if no value is available.

Show more results