Toxaris / pts

Interpreter for functional pure type systems.
BSD 3-Clause "New" or "Revised" License
21 stars 7 forks source link

Still report errors in the presence of exceptions #64

Open fehrenbach opened 10 years ago

fehrenbach commented 10 years ago

Consider a PTS file that has a type error and then triggers a bug in the type checker (or probably anywhere else in the PTS interpreter)..

The type error will not be displayed immediately, because it will be recorded to be printed with all other type errors at the end. Then the bug is triggered (for example an unmatched pattern) which will cause a Haskell exception to be displayed and this terminates the program without printing the type errors that occured before.