Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
gi-gio GI.Gio.Objects.SocketListener Listens for TCP connections on any available port number for both IPv6 and IPv4 (if each is available). This is useful if you need to have a socket for incoming connections but don't care about the specific port number. sourceObject will be passed out in the various calls to accept to identify this particular source, which is useful if you're listening on multiple addresses and do different things depending on what address is connected to. Since: 2.24
many :: Alternative f => f a -> f [a]relude Relude.Applicative 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.biany :: Bifoldable t => (a -> Bool) -> (b -> Bool) -> t a b -> Boolrelude Relude.Foldable.Reexport Determines whether any element of the structure satisfies its appropriate predicate argument. Empty structures yield False.
Examples
Basic usage:>>> biany even isDigit (27, 't') False
>>> biany even isDigit (27, '8') True
>>> biany even isDigit (26, 't') True
>>> biany even isDigit (Left 27) False
>>> biany even isDigit (Left 26) True
>>> biany even isDigit (BiList [27, 53] ['t', '8']) True
Empty structures yield False:>>> biany even isDigit (BiList [] []) False
-
relude Relude.Monoid No documentation available.
matchAny :: (Message -> Process b) -> Match bdistributed-process Control.Distributed.Process Match against an arbitrary message. matchAny removes the first available message from the process mailbox. To handle arbitrary raw messages once removed from the mailbox, see handleMessage and unwrapMessage.
matchAnyIf :: Serializable a => (a -> Bool) -> (Message -> Process b) -> Match bdistributed-process Control.Distributed.Process Match against an arbitrary message. Intended for use with handleMessage and unwrapMessage, this function only removes a message from the process mailbox, if the supplied condition matches. The success (or failure) of runtime type checks deferred to handleMessage and friends is irrelevant here, i.e., if the condition evaluates to True then the message will be removed from the process mailbox and decoded, but that does not guarantee that an expression passed to handleMessage will pass the runtime type checks and therefore be evaluated.
matchAny :: (Message -> Process b) -> Match bdistributed-process Control.Distributed.Process.Internal.Primitives Match against an arbitrary message. matchAny removes the first available message from the process mailbox. To handle arbitrary raw messages once removed from the mailbox, see handleMessage and unwrapMessage.
matchAnyIf :: Serializable a => (a -> Bool) -> (Message -> Process b) -> Match bdistributed-process Control.Distributed.Process.Internal.Primitives Match against an arbitrary message. Intended for use with handleMessage and unwrapMessage, this function only removes a message from the process mailbox, if the supplied condition matches. The success (or failure) of runtime type checks deferred to handleMessage and friends is irrelevant here, i.e., if the condition evaluates to True then the message will be removed from the process mailbox and decoded, but that does not guarantee that an expression passed to handleMessage will pass the runtime type checks and therefore be evaluated.
TooManyListMembers :: InvalidBaggagehs-opentelemetry-api OpenTelemetry.Baggage No documentation available.
-
pandoc-types Text.Pandoc.Builder No documentation available.