Control.Effect.Unclog
data Log (m :: k) r where Source #
a logging effect
Constructors
Defined in Control.Carrier.Unclog
Methods
alg :: forall ctx (n :: Type -> Type) a. Functor ctx => Handler ctx n (UnclogC m) -> ((Log :: (Type -> Type) -> Type -> Type) :+: sig) n a -> ctx () -> UnclogC m (ctx a) #
publishLogEntry :: forall (sig :: (Type -> Type) -> Type -> Type) m. Has (Log :: (Type -> Type) -> Type -> Type) sig m => (Time -> LogEntry) -> m () Source #
publish a log entry that gets supplied a time by the effect interpretation