Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. data CompactMap (vec :: Type -> Type) k v

    compactmap Data.CompactMap.Generic

    No documentation available.

  2. trimapPipe :: forall i j p o u v (m :: Type -> Type) a . (i -> j) -> (p -> o) -> (u -> v) -> Pipe j p v m a -> Pipe i o u m a

    conduino Data.Conduino

    Map over the input type, output type, and upstream result type. If you want to map over the result type, use fmap.

  3. concatMap :: forall t i o u (m :: Type -> Type) . Foldable t => (i -> t o) -> Pipe i o u m u

    conduino Data.Conduino.Combinators

    Map a function returning a container onto every incoming item, and yield all of the outputs from that function.

  4. foldMap :: forall a i o u (m :: Type -> Type) . Monoid a => (i -> a) -> Pipe i o u m a

    conduino Data.Conduino.Combinators

    Fold every incoming item according to a monoidal projection, and return the result once finished. This can be used to implement many useful consumers, like ones that find the sum or the maximum item:

    sum :: Num i => Pipe i o u m i
    sum = getSum $ foldMap Sum
    
    maximum :: Ord i => Pipe i o u m (Maybe i)
    maximum = fmap getMax $ foldMap (Just . Max)
    

  5. trimapPipe :: forall i j p o u v (m :: Type -> Type) a . (i -> j) -> (p -> o) -> (u -> v) -> Pipe j p v m a -> Pipe i o u m a

    conduino Data.Conduino.Internal

    Map over the input type, output type, and upstream result type. If you want to map over the result type, use fmap.

  6. trimapPipeF :: (i -> j) -> (p -> o) -> (u -> v) -> PipeF j p v a -> PipeF i o u a

    conduino Data.Conduino.Internal

    No documentation available.

  7. commaParser :: Char -> Parser ()

    conduit-aeson Data.Conduit.Aeson

    Use a comma for delimiter.

  8. asyncMapC :: forall a (m :: Type -> Type) b . (MonadIO m, NFData b) => Int -> (a -> b) -> ConduitT a b m ()

    conduit-algorithms Data.Conduit.Algorithms.Async

    This is like map, except that each element is processed in a separate thread (up to maxThreads can be queued up at any one time). Results are evaluated to normal form (not weak-head normal form!, i.e., the structure is deeply evaluated) to ensure that the computation is fully evaluated in the worker thread. Note that there is some overhead in threading. It is often a good idea to build larger chunks of input before passing it to asyncMapC to amortize the costs. That is, when f is not a lot of work, instead of asyncMapC f, it is sometimes better to do

    CC.conduitVector 4096 .| asyncMapC (V.map f) .| CC.concat
    
    where CC refers to Combinators See unorderedAsyncMapC

  9. asyncMapEitherC :: forall a (m :: Type -> Type) b e . (MonadIO m, NFData b, NFData e, MonadError e m) => Int -> (a -> Either e b) -> ConduitT a b m ()

    conduit-algorithms Data.Conduit.Algorithms.Async

    asyncMapC with error handling. The inner function can now return an error (as a Left). When the first error is seen, it throwErrors in the main monad. Note that f may be evaluated for arguments beyond the first error (as some threads may be running in the background and already processing elements after the first error). See asyncMapC

  10. unorderedAsyncMapC :: forall a (m :: Type -> Type) b . (MonadIO m, NFData b) => Int -> (a -> b) -> ConduitT a b m ()

    conduit-algorithms Data.Conduit.Algorithms.Async

    A version of asyncMapC which can reorder results in the stream If the order of the results is not important, this function can lead to a better use of resources if some of the chunks take longer to complete. See asyncMapC

Page 1141 of many | Previous | Next