Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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.
insertManyLeft :: List c => c (n c tag text) -> CursorG n c tag text -> CursorG n c tag texthexpat Text.XML.Expat.Cursor Insert content to the left of the current position.
insertManyRight :: List c => c (n c tag text) -> CursorG n c tag text -> CursorG n c tag texthexpat Text.XML.Expat.Cursor Insert content to the right of the current position.