Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

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

  1. qtoMonoid :: forall m p (x :: k) (y :: k) . (QFoldable c, Monoid m) => (forall (x1 :: k) (y1 :: k) . () => p x1 y1 -> m) -> c p x y -> m

    free-categories Data.Quiver.Functor

    Map each element of the structure to a Monoid, and combine the results.

  2. outputToIOMonoid :: forall o m (r :: EffectRow) a . (Monoid m, Member (Embed IO) r) => (o -> m) -> Sem ((Output o :: (Type -> Type) -> Type -> Type) ': r) a -> Sem r (m, a)

    incipit-core IncipitCore

    Run an Output effect in terms of atomic operations in IO. Internally, this simply creates a new IORef, passes it to runOutputMonoidIORef, and then returns the result and the final value of the IORef. Beware: As this uses an IORef internally, all other effects will have local state semantics in regards to Output effects interpreted this way. For example, throw and catch will never revert outputs, even if runError is used after outputToIOMonoid.

  3. outputToIOMonoidAssocR :: forall o m (r :: EffectRow) a . (Monoid m, Member (Embed IO) r) => (o -> m) -> Sem ((Output o :: (Type -> Type) -> Type -> Type) ': r) a -> Sem r (m, a)

    incipit-core IncipitCore

    Like outputToIOMonoid, but right-associates uses of <>. This asymptotically improves performance if the time complexity of <> for the Monoid depends only on the size of the first argument. You should always use this instead of outputToIOMonoid if the monoid is a list, such as String. Beware: As this uses an IORef internally, all other effects will have local state semantics in regards to Output effects interpreted this way. For example, throw and catch will never revert outputs, even if runError is used after outputToIOMonoidAssocR.

  4. runLazyOutputMonoid :: forall o m (r :: [(Type -> Type) -> Type -> Type]) a . Monoid m => (o -> m) -> Sem ((Output o :: (Type -> Type) -> Type -> Type) ': r) a -> Sem r (m, a)

    incipit-core IncipitCore

    Run an Output effect by transforming it into a monoid, and accumulate it lazily. Warning: This inherits the nasty space leak issue of WriterT! Don't use this if you don't have to.

  5. runLazyOutputMonoidAssocR :: forall o m (r :: [(Type -> Type) -> Type -> Type]) a . Monoid m => (o -> m) -> Sem ((Output o :: (Type -> Type) -> Type -> Type) ': r) a -> Sem r (m, a)

    incipit-core IncipitCore

    Like runLazyOutputMonoid, but right-associates uses of <>. This asymptotically improves performance if the time complexity of <> for the Monoid depends only on the size of the first argument. You should always use this instead of runLazyOutputMonoid if the monoid is a list, such as String. Warning: This inherits the nasty space leak issue of WriterT! Don't use this if you don't have to.

  6. runOutputMonoid :: forall o m (r :: [(Type -> Type) -> Type -> Type]) a . Monoid m => (o -> m) -> Sem ((Output o :: (Type -> Type) -> Type -> Type) ': r) a -> Sem r (m, a)

    incipit-core IncipitCore

    Run an Output effect by transforming it into a monoid.

  7. runOutputMonoidAssocR :: forall o m (r :: [(Type -> Type) -> Type -> Type]) a . Monoid m => (o -> m) -> Sem ((Output o :: (Type -> Type) -> Type -> Type) ': r) a -> Sem r (m, a)

    incipit-core IncipitCore

    Like runOutputMonoid, but right-associates uses of <>. This asymptotically improves performance if the time complexity of <> for the Monoid depends only on the size of the first argument. You should always use this instead of runOutputMonoid if the monoid is a list, such as String.

  8. runOutputMonoidIORef :: forall o m (r :: EffectRow) a . (Monoid m, Member (Embed IO) r) => IORef m -> (o -> m) -> Sem ((Output o :: (Type -> Type) -> Type -> Type) ': r) a -> Sem r a

    incipit-core IncipitCore

    Run an Output effect by transforming it into atomic operations over an IORef.

  9. runOutputMonoidTVar :: forall o m (r :: EffectRow) a . (Monoid m, Member (Embed IO) r) => TVar m -> (o -> m) -> Sem ((Output o :: (Type -> Type) -> Type -> Type) ': r) a -> Sem r a

    incipit-core IncipitCore

    Run an Output effect by transforming it into atomic operations over a TVar.

  10. mapMonoidMap :: DecidablyEmpty b => (a -> b) -> MonoidMap k a -> MonoidMap k b

    monoid-map Data.MonoidMap

    No documentation available.

Page 37 of many | Previous | Next