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.
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.
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.
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.
waitAnySTM :: [Async a] -> STM (Async a, a)effectful Effectful.Concurrent.Async A version of waitAny that can be used inside an STM transaction.
-
fixed-vector Data.Vector.Fixed.Cont Curry n first parameters of n-ary function
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 []
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.isAnyApp :: LHsExpr GhcPs -> Boolghc-lib-parser-ex Language.Haskell.GhclibParserEx.GHC.Hs.Expr No documentation available.
-
hexpat Text.XML.Expat.Cursor Insert content as the first child of the current position.
-
hexpat Text.XML.Expat.Cursor Insert content as the first child of the current position.