signature Stream.Receive where import Socket.Buffer (Buffer) import Foreign.C.Error (Errno) import Foreign.C.Types (CSize) import Prelude (Either,IO) import System.Posix.Types (Fd) -- Make a single POSIX @recv@ call with the unsafe FFI. receiveOnce :: Fd -> Buffer -> IO (Either Errno CSize)