Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
sequence :: Monad m => Fold m a (m b) -> Fold m a bstreamly-core Streamly.Internal.Data.Fold Deprecated: Use "rmapM id" instead
-
streamly-core Streamly.Internal.Data.Parser sequence f p collects sequential parses of parsers in a serial stream p using the fold f. Fails if the input ends or any of the parsers fail. Pre-release
sequence :: Monad m => Stream m (m a) -> Stream m astreamly-core Streamly.Internal.Data.Stream >>> sequence = Stream.mapM id
Replace the elements of a stream of monadic actions with the outputs of those actions.>>> s = Stream.fromList [putStr "a", putStr "b", putStrLn "c"] >>> Stream.fold Fold.drain $ Stream.sequence s abc
sequence :: Monad m => StreamK m (m a) -> StreamK m astreamly-core Streamly.Internal.Data.StreamK No documentation available.
-
synthesizer-midi Synthesizer.MIDI.Dimensional No documentation available.
-
synthesizer-midi Synthesizer.MIDI.Generic No documentation available.
-
synthesizer-midi Synthesizer.MIDI.Storable No documentation available.
sequence :: (Traversable t, Monad m) => t (m a) -> m (t a)clash-prelude Clash.HaskellPrelude Evaluate each monadic action in the structure from left to right, and collect the results. For a version that ignores the results see sequence_.
Examples
Basic usage: The first two examples are instances where the input and and output of sequence are isomorphic.>>> sequence $ Right [1,2,3,4] [Right 1,Right 2,Right 3,Right 4]
>>> sequence $ [Right 1,Right 2,Right 3,Right 4] Right [1,2,3,4]
The following examples demonstrate short circuit behavior for sequence.>>> sequence $ Left [1,2,3,4] Left [1,2,3,4]
>>> sequence $ [Left 0, Right 1,Right 2,Right 3,Right 4] Left 0
-
construct Construct Sequence a list of formats into a list format.
sequence :: (Traversable t, Monad m) => t (m a) -> m (t a)control-monad-free Control.Monad.Free Evaluate each monadic action in the structure from left to right, and collect the results. For a version that ignores the results see sequence_.
Examples
Basic usage: The first two examples are instances where the input and and output of sequence are isomorphic.>>> sequence $ Right [1,2,3,4] [Right 1,Right 2,Right 3,Right 4]
>>> sequence $ [Right 1,Right 2,Right 3,Right 4] Right [1,2,3,4]
The following examples demonstrate short circuit behavior for sequence.>>> sequence $ Left [1,2,3,4] Left [1,2,3,4]
>>> sequence $ [Left 0, Right 1,Right 2,Right 3,Right 4] Left 0