summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile/PGFtoPython.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2012-06-25 14:01:58 +0000
committerhallgren <hallgren@chalmers.se>2012-06-25 14:01:58 +0000
commit0a09f3e0b2f25c02589f5e10b4235303cd218d79 (patch)
treeb370b35404c60d87dead8db89049dc153e689452 /src/compiler/GF/Compile/PGFtoPython.hs
parentdeec2d4ecfb0af850f4fcf7ce0e14ddcd8baf1ac (diff)
Check monad: support for accumulated errors
In addition to warnings, the Check monad in GF.Infra.CheckM can now accumulate errors. There are two new functions checkAccumError: Message -> Check () accumulateError :: (a -> Check a) -> a -> Check a The former (with the same type as checkWarn) is used to report an accumulated (nonfatal) error. The latter converts fatal errors into accumulated errors. Accumulated errors are reported as regular errors by runCheck. Also, the Check monad type has been made abstract.
Diffstat (limited to 'src/compiler/GF/Compile/PGFtoPython.hs')
0 files changed, 0 insertions, 0 deletions