Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP, RFC) Distinguish variable-not-found-error from others #35

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 4, 2020

  1. (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 dmjio#30 as a bonus!
    igrep committed Feb 4, 2020
    Configuration menu
    Copy the full SHA
    d99fd96 View commit details
    Browse the repository at this point in the history