Open pdcxs opened 3 years ago
I follow the codes in chapter 14 and find some little problems.
charClass_wordy defined but not used, I think maybe the charClass function should be modified as following:
charClass_wordy
charClass
charClass (']':cs) = (']':) <$> globToRegex' cs charClass (c:cs) = (c:) <$> charClass_wordy cs
According to monad fail, from GHC 8.8+, the fail function will not be supported. I suggest change the fail function to error or other implementation.
fail
error
charClass_wordy also lacks a matching form, which should be added as follows:
charClassWordy "" = error "No more input"
I follow the codes in chapter 14 and find some little problems.
charClass_wordy
defined but not used, I think maybe thecharClass
function should be modified as following:According to monad fail, from GHC 8.8+, the
fail
function will not be supported. I suggest change thefail
function toerror
or other implementation.charClass_wordy also lacks a matching form, which should be added as follows: