记录三次,调试一次。 -Г。 Любенов 关于 多义日志记录后端适配器的常见接口: import Polysemy.Log import Polysemy.Log.Colog prog :: Member Log r => Sem r () prog = do Log. debug " debugging " Log. error " failing " interpretLogColog prog :: Sem [ Colog. Log ( LogEntry LogMessage ), Embed IO ] () interpretLogStdout prog :: Sem '[ Embed IO ] () 有关更多文档,请查阅Hackage: