napkin-0.5.10
Safe HaskellNone
LanguageHaskell2010

Polysemy.Tap

Synopsis

Documentation

tapWith :: forall e r rInitial a. (FirstOrder e "tapWith", Coercible (e (Sem rInitial) a) (e (Sem r) a), Member e r) => (e (Sem rInitial) a -> Sem r ()) -> e (Sem rInitial) a -> Tactical e (Sem rInitial) r a #

Enables to call action before forwarding request to underlying interpreters. Useful for logging.