-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(WIP) Distinguish variable-not-found-error from others
Problem ==== - Handling `Maybe` values in the `Parser` monad is troublesome. - Even `envMaybe` mixes up variable-not-found-error with others, which makes the difference of `Nothing` and `Left String` obscure. Solution ==== Change the error type of `Parser a` from just a `String` into a dedicated error ADT `ParseError`. NOTE ==== - Fix #30 as a bonus!
- Loading branch information
Showing
1 changed file
with
79 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters