Portability | to be determined. |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Logging monad for collecting report fragments
- data ReportM a
- type Log = ([Html], ChangeStats)
- data CMP a
- data ChangeStats = ChangeStats {}
- type ModuleParseFunction = HsSourceFile -> IO (Either ModuleParseError Module)
- data ReportLevel
- = JUST_MSG
- | MSG_AND_HTML
- runReportM :: ModuleParseFunction -> ReportLevel -> ReportM a -> IO (a, Log)
- execReportM :: ModuleParseFunction -> ReportLevel -> ReportM a -> IO Log
- askParseFun :: ReportM ModuleParseFunction
- liftIO :: IO a -> ReportM a
- tellHtml :: Html -> ReportM ()
- tellUnresolved :: CMP StrName -> ReportM ()
- tellParseFail :: CMP StrName -> ReportM ()
- incrRemovedModules :: ReportM ()
- incrRemovedExports :: ReportM ()
- incrChangedExports :: ReportM ()
- incrRemovedDatatypes :: ReportM ()
- incrChangedDatatypes :: ReportM ()
- incrRemovedTypeSigs :: ReportM ()
- incrChangedTypeSigs :: ReportM ()
- incrRemovedInstances :: ReportM ()
- incrChangedInstances :: ReportM ()
Report-monad
type Log = ([Html], ChangeStats)Source
data ChangeStats Source
ChangeStats | |
|
type ModuleParseFunction = HsSourceFile -> IO (Either ModuleParseError Module)Source
runReportM :: ModuleParseFunction -> ReportLevel -> ReportM a -> IO (a, Log)Source
execReportM :: ModuleParseFunction -> ReportLevel -> ReportM a -> IO LogSource