Hoogle Search

Within LTS Haskell 24.40 (ghc-9.10.3)

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

  1. decodeMany :: ByteString -> Either DNSError ([DNSMessage], ByteString)

    dns Network.DNS.Decode

    Decode a buffer containing multiple encoded DNS messages each preceded by a 16-bit length in network byte order. Any left-over bytes of a partial message after the last complete message are returned as the second element of the result tuple. DNS circle-arithmetic timestamps (e.g. in RRSIG records) are interpreted based on a nominal time in the year 2078 chosen to give correct dates for DNS timestamps over a 136 year time range from the date the root zone was signed on the 15th of July 2010 until the 21st of August in 2146. Outside this date range the output is off by some non-zero multiple 2^32 seconds.

  2. decodeManyAt :: Int64 -> ByteString -> Either DNSError ([DNSMessage], ByteString)

    dns Network.DNS.Decode

    Decode a buffer containing multiple encoded DNS messages each preceded by a 16-bit length in network byte order. Any left-over bytes of a partial message after the last complete message are returned as the second element of the result tuple. DNS circle-arithmetic timestamps (e.g. in RRSIG records) are interpreted at the supplied epoch time.

  3. waitAnyCatchSTM :: [Async a] -> STM (Async a, Either SomeException a)

    effectful Effectful.Concurrent.Async

    A version of waitAnyCatch that can be used inside an STM transaction.

  4. waitAnySTM :: [Async a] -> STM (Async a, a)

    effectful Effectful.Concurrent.Async

    A version of waitAny that can be used inside an STM transaction.

  5. curryMany :: forall (n :: PeanoNum) (k :: PeanoNum) a b . ArityPeano n => Fun (Add n k) a b -> Fun n a (Fun k a b)

    fixed-vector Data.Vector.Fixed.Cont

    Curry n first parameters of n-ary function

  6. many :: forall (sig :: (Type -> Type) -> Type -> Type) m a . Has Choose sig m => m a -> m [a]

    fused-effects Control.Effect.Choose

    Zero or more.

    many m = some m <|> pure []
    

  7. many :: Alternative f => f a -> f [a]

    fused-effects Control.Effect.NonDet

    Zero or more.

    Examples

    >>> many (putStr "la")
    lalalalalalalalala... * goes on forever *
    
    >>> many Nothing
    Just []
    
    >>> take 5 <$> many (Just 1)
    * hangs forever *
    
    Note that this function can be used with Parsers based on Applicatives. In that case many parser will attempt to parse parser zero or more times until it fails.

  8. isAnyApp :: LHsExpr GhcPs -> Bool

    ghc-lib-parser-ex Language.Haskell.GhclibParserEx.GHC.Hs.Expr

    No documentation available.

  9. insertManyFirstChild :: NodeClass n c => c (n c tag text) -> CursorG n c tag text -> Maybe (CursorG n c tag text)

    hexpat Text.XML.Expat.Cursor

    Insert content as the first child of the current position.

  10. insertManyLastChild :: NodeClass n c => c (n c tag text) -> CursorG n c tag text -> Maybe (CursorG n c tag text)

    hexpat Text.XML.Expat.Cursor

    Insert content as the first child of the current position.

Page 177 of many | Previous | Next