Last active
September 18, 2016 14:59
-
-
Save yawaramin/7792c91cb9684ba6350c to your computer and use it in GitHub Desktop.
Parse text tags
@bitemyapp it depends on your case analysis. For example, I've revised my function to break up the text into a list of either tags or plain runs. In my logic, anything that's not a tag is a plain run of text. That means a malformed tag will end up being a run as well.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is not error resistant, that is error implicit which defeats the purpose of using Haskell. If a parser encounters an error it should return an explicit error value, ideally a sum type in an Either or Validation.