You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newtype Alex a = Alex { unAlex :: AlexState
-> Either String (AlexState, a) }
where any error is stored in the Left as String. It would be great if the programmer could define its own "error state" or maybe if Alex could already report more than one lexical error. I had to define my AlexUserState as
data AlexUserState = AlexUserState {
matches :: Either [Error] [Token]
}
for storing all lexical errors that have occurred and then show them to the user.
The text was updated successfully, but these errors were encountered:
gustavoaca1997
changed the title
Allow custom type for error state in Alex monad
Report multiple errors at the same time
Oct 3, 2019
gustavoaca1997
changed the title
Report multiple errors at the same time
Allow custom type for error state in Alex monad
Oct 3, 2019
gustavoaca1997
changed the title
Allow custom type for error state in Alex monad
Allow custom errors in Alex monad
Oct 3, 2019
gustavoaca1997
changed the title
Allow custom errors in Alex monad
Allow multiple errors in Alex monad
Oct 3, 2019
gustavoaca1997
changed the title
Allow multiple errors in Alex monad
Report multiple errors in Alex monad
Oct 3, 2019
Alex
is defined aswhere any error is stored in the
Left
asString
. It would be great if the programmer could define its own "error state" or maybe if Alex could already report more than one lexical error. I had to define myAlexUserState
asfor storing all lexical errors that have occurred and then show them to the user.
The text was updated successfully, but these errors were encountered: