Hoogle Search
Within LTS Haskell 24.50 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
breakOnAll :: HasCallStack => Text -> Text -> [(Text, Text)]text Data.Text.Lazy O(n+m) Find all non-overlapping instances of needle in haystack. Each element of the returned list consists of a pair:
- The entire string prior to the kth match (i.e. the prefix)
- The kth match, followed by the remainder of the string
breakOnAll "::" "" ==> [] breakOnAll "/" "a/b/c/" ==> [("a", "/b/c/"), ("a/b", "/c/"), ("a/b/c", "/")]This function is strict in its first argument, and lazy in its second. In (unlikely) bad cases, this function's time complexity degrades towards O(n*m). The needle parameter may not be empty.fromDistinctAscList_linkAll :: FromDistinctMonoState k a -> Map k acontainers Data.Map.Internal No documentation available.
fromDistinctDescList_linkAll :: FromDistinctMonoState k a -> Map k acontainers Data.Map.Internal No documentation available.
type
CallCC (m :: Type -> Type) a b = a -> m b -> m a -> m atransformers Control.Monad.Signatures Signature of the callCC operation, introduced in Control.Monad.Trans.Cont. Any lifting function liftCallCC should satisfy
liftCallCC :: CallCC m (a, w) (b, w) -> CallCC (AccumT w m) a btransformers Control.Monad.Trans.Accum Uniform lifting of a callCC operation to the new monad. This version rolls back to the original output history on entering the continuation.
liftCallCC' :: CallCC m (a, w) (b, w) -> CallCC (AccumT w m) a btransformers Control.Monad.Trans.Accum In-situ lifting of a callCC operation to the new monad. This version uses the current output history on entering the continuation. It does not satisfy the uniformity property (see Control.Monad.Signatures).
-
transformers Control.Monad.Trans.Except finallyE a b executes computation a followed by computation b, even if a exits early by throwing an exception. In the latter case, the exception is re-thrown after b has been executed.
liftCallCC :: CallCC m (Either e a) (Either e b) -> CallCC (ExceptT e m) a btransformers Control.Monad.Trans.Except Lift a callCC operation to the new monad.
liftCallCC :: CallCC m a b -> CallCC (IdentityT m) a btransformers Control.Monad.Trans.Identity Lift a callCC operation to the new monad.
liftCallCC :: CallCC m (Maybe a) (Maybe b) -> CallCC (MaybeT m) a btransformers Control.Monad.Trans.Maybe Lift a callCC operation to the new monad.