samisagit / natskell

A NATS client library written in Haskell
MIT License
5 stars 0 forks source link

til parser #93

Closed samisagit closed 1 year ago

samisagit commented 1 year ago

The til parser will read until the end of the input and return successfully if no match is found.

samisagit commented 1 year ago

It might be worth updating the alternative parser to check differentiate errors, e.g. if til returns a Left "hit excluded char" this is acceptable, but Left "reached end of input" this is a failed parse.

samisagit commented 1 year ago

It might be worth updating the alternative parser to check differentiate errors, e.g. if til returns a Left "hit excluded char" this is acceptable, but Left "reached end of input" this is a failed parse.

Ended up just checking if the char existed up front. Possibly inefficient, but works for now.