ta0kira / zeolite

Zeolite is a statically-typed, general-purpose programming language.
Apache License 2.0
18 stars 0 forks source link

Remove `exitFailure` from `Cli`. #63

Closed ta0kira closed 4 years ago

ta0kira commented 4 years ago

Use CompileInfoT IO a instead so that errors are recoverable, and to allow short-circuiting based on compilation failure. This might also require changing PathResolver and CompilerBackend so that exit isn't the only failure option.

Note that IO (CompileInfo a) should not be replaced with CompileInfoT IO a where multiple failures should be allowed, e.g., in Tests and Cli.TestRunner.