Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
An effect for storing errors.
Synopsis
- data Reports :: Effect where
- StoreReport :: ReportContext -> Report -> Reports m ()
- StoredReports :: Reports m (Map ReportContext [StoredReport])
- storeReport :: Member Reports r => ReportContext -> Report -> Sem r ()
- storedReports :: Member Reports r => Sem r (Map ReportContext [StoredReport])
Documentation
data Reports :: Effect where Source #
This internal effect stores all errors in memory that have been created through the Report
system.
StoreReport :: ReportContext -> Report -> Reports m () | Add a report to the store. |
StoredReports :: Reports m (Map ReportContext [StoredReport]) | Get all reports. |
storeReport :: Member Reports r => ReportContext -> Report -> Sem r () Source #
Add a report to the store.
storedReports :: Member Reports r => Sem r (Map ReportContext [StoredReport]) Source #
Get all reports.