Hoogle Search

Within LTS Haskell 24.42 (ghc-9.10.3)

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

  1. allocRet :: ByteArrayN n c => Proxy n -> (Ptr p -> IO a) -> IO (a, c)

    memory Data.ByteArray.Sized

    just like allocRet but with the size at the type level

  2. allocateBuffer :: Int -> IO Buffer

    warp Network.Wai.Handler.Warp.Internal

    Allocating a buffer with malloc().

  3. allM :: Monad m => (a -> m Bool) -> [a] -> m Bool

    extra Control.Monad.Extra

    A version of all lifted to a monad. Retains the short-circuiting behaviour.

    allM Just [True,False,undefined] == Just False
    allM Just [True,True ,undefined] == undefined
    \(f :: Int -> Maybe Bool) xs -> anyM f xs == orM (map f xs)
    

  4. allM :: (Foldable f, Monad m) => (a -> m Bool) -> f a -> m Bool

    extra Data.Foldable.Extra

    A generalization of allM to Foldable instances. Retains the short-circuiting behaviour.

  5. allSame :: Eq a => [a] -> Bool

    extra Data.List.Extra

    Are all elements the same.

    allSame [1,1,2] == False
    allSame [1,1,1] == True
    allSame [1]     == True
    allSame []      == True
    allSame (1:1:2:undefined) == False
    \xs -> allSame xs == (length (nub xs) <= 1)
    

  6. allM :: Monad m => (a -> m Bool) -> [a] -> m Bool

    extra Extra

    A version of all lifted to a monad. Retains the short-circuiting behaviour.

    allM Just [True,False,undefined] == Just False
    allM Just [True,True ,undefined] == undefined
    \(f :: Int -> Maybe Bool) xs -> anyM f xs == orM (map f xs)
    

  7. allSame :: Eq a => [a] -> Bool

    extra Extra

    Are all elements the same.

    allSame [1,1,2] == False
    allSame [1,1,1] == True
    allSame [1]     == True
    allSame []      == True
    allSame (1:1:2:undefined) == False
    \xs -> allSame xs == (length (nub xs) <= 1)
    

  8. allEqual :: Eq a => [a] -> Bool

    utility-ht Data.List.HT

    >>> allEqual "aab"
    False
    
    >>> allEqual "aaa"
    True
    
    >>> allEqual "aa"
    True
    
    >>> allEqual "a"
    True
    
    >>> allEqual ""
    True
    

  9. allNewBuffersStrategy :: Int -> BufferAllocStrategy

    conduit-extra Data.Conduit.ByteString.Builder

    The simplest buffer allocation strategy: whenever a buffer is requested, allocate a new one that is big enough for the next build step to execute. NOTE that this allocation strategy may spill quite some memory upon direct insertion of a bytestring by the builder. Thats no problem for garbage collection, but it may lead to unreasonably high memory consumption in special circumstances.

  10. allMime :: AllMime list => Proxy list -> [MediaType]

    servant Servant.API.ContentTypes

    No documentation available.

Page 78 of many | Previous | Next