f-o-a-m / purescript-web3

a purescript library for the web3 api
Apache License 2.0
127 stars 24 forks source link

Use <?> when all parsers fail #98

Closed martyall closed 6 years ago

martyall commented 6 years ago

We should be using withErrorMessage from purescript-parsing whenever all parsers fail. The alternative to this is that the last parser that tried to run will fail, and this gives a confusing error message

https://pursuit.purescript.org/packages/purescript-parsing/4.3.1/docs/Text.Parsing.Parser.Combinators#v:(%3C?%3E)

safareli commented 6 years ago

I know we have parser of abi in ps-web3-generator is that what you are referring to? if not can you add a link, please