Leonardo de Moura
1352619ee4
refactor: MonadTracer and helper functions
...
This commit adds
- `addContext : MessageData -> m MessageData` method. We need it to
make sure we wrap the message with the current context. Before this
commit I had to redefine `trace` for `MetaM`, `SynthM`, and
`TermElabM`.
- polymorphic `traceM` method.
2019-12-08 09:05:15 -08:00
Leonardo de Moura
3422dbca5f
chore: fix tests
2019-12-04 17:25:46 -08:00
Leonardo de Moura
41e574d6cc
chore: fix tests
2019-11-05 14:44:05 -08:00
Leonardo de Moura
c330600197
chore: add example to demonstrate that messages are computed lazily
2019-10-22 17:12:42 -07:00
Leonardo de Moura
d51c291f2a
refactor: simplify traceCtx
2019-10-22 16:36:18 -07:00
Leonardo de Moura
6498055656
chore: helper instances
2019-10-22 16:18:28 -07:00
Leonardo de Moura
f88561ae68
feat: add trace! macro
2019-10-22 16:08:37 -07:00
Leonardo de Moura
45e21168d2
feat: hierarchical trace kinds
2019-10-22 15:13:57 -07:00
Leonardo de Moura
0a0bc0b7b9
fix: remove unused parameter and add missing disableTracing
2019-10-22 15:04:44 -07:00
Leonardo de Moura
16099189f2
chore: minor adjustments
2019-10-22 14:57:26 -07:00
Leonardo de Moura
13faf9fdf6
feat: add trace prefix to options
2019-10-22 14:43:02 -07:00
Leonardo de Moura
3cd8dc6366
fix: minor issues and add MonadTracer test
2019-10-22 14:33:07 -07:00