Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
calloc :: Storable a => IO (Ptr a)base-compat Foreign.Marshal.Alloc.Compat Like malloc but memory is filled with bytes of value zero.
callocBytes :: Int -> IO (Ptr a)base-compat Foreign.Marshal.Alloc.Compat Like mallocBytes, but memory is filled with bytes of value zero.
callocArray :: Storable a => Int -> IO (Ptr a)base-compat Foreign.Marshal.Array.Compat Like mallocArray, but allocated memory is filled with bytes of value zero.
callocArray0 :: Storable a => Int -> IO (Ptr a)base-compat Foreign.Marshal.Array.Compat Like callocArray0, but allocated memory is filled with bytes of value zero.
equalLength :: [a] -> [b] -> Boolutility-ht Data.List.Match Check whether two lists with different element types have equal length. It holds
\(Shape xs) (List ys) -> equalLength xs ys == (length xs == length ys)
but equalLength is more efficient.lessOrEqualLength :: [a] -> [b] -> Boolutility-ht Data.List.Match lessOrEqualLength x y is almost the same as compareLength x y <= EQ, but
>>> lessOrEqualLength "" undefined True
whereas compareLength [] undefined <= EQ = undefined.type
BufferAllocStrategy = (IO Buffer, Int -> Buffer -> IO IO Buffer)conduit-extra Data.Conduit.ByteString.Builder A buffer allocation strategy (buf0, nextBuf) specifies the initial buffer to use and how to compute a new buffer nextBuf minSize buf with at least size minSize from a filled buffer buf. The double nesting of the IO monad helps to ensure that the reference to the filled buffer buf is lost as soon as possible, but the new buffer doesn't have to be allocated too early.
sinkAllSocket :: forall (m :: Type -> Type) o . MonadIO m => Socket -> ConduitT ByteString o m ()conduit-extra Data.Conduit.Network.UDP Stream messages to the connected socket. The payload is sent using sendAll, so it might end up in multiple packets. This function does not automatically close the socket.
sinkAllToSocket :: forall (m :: Type -> Type) o . MonadIO m => Socket -> ConduitT Message o m ()conduit-extra Data.Conduit.Network.UDP Stream messages to the socket. Every handled item contains the message payload and the destination address. The payload is sent using sendAllTo, so it might end up in multiple packets. This function does not automatically close the socket.
isPotentiallyTrustworthyOrigin :: Bool -> ByteString -> Boolhttp-conduit Network.HTTP.Client.Conduit Algorithm described in "Secure Contexts", Section 3.1, "Is origin potentially trustworthy?" Note per RFC6265 section 5.4 user agent is free to define the meaning of "secure" protocol. See: https://w3c.github.io/webappsec-secure-contexts/#is-origin-trustworthy