1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

📝 trace.

This commit is contained in:
Rob Rix 2017-12-21 11:18:36 -05:00
parent f15f468706
commit 6d2f116796

View File

@ -8,6 +8,7 @@ import Data.Abstract.Value
-- | 'Monad's offering a writable trace of configurations. -- | 'Monad's offering a writable trace of configurations.
class Monad m => MonadTrace t v g m where class Monad m => MonadTrace t v g m where
-- | Log the given collection of configurations.
trace :: g (Configuration (LocationFor v) t v) -> m () trace :: g (Configuration (LocationFor v) t v) -> m ()
instance (Writer (g (Configuration (LocationFor v) t v)) :< fs) => MonadTrace t v g (Eff fs) where instance (Writer (g (Configuration (LocationFor v) t v)) :< fs) => MonadTrace t v g (Eff fs) where