robrix / Madness

Recursive Descent Into Madness
MIT License
291 stars 17 forks source link

Use *> to concatenate parsers, dropping the left hand side’s trees #90

Closed robrix closed 8 years ago

robrix commented 9 years ago

A la Applicative’s *> or Monad’s >>. I think *> communicates more clearly for our purposes.

If there is a similar operator for Alternative then we can use it and this to get rid of ignore altogether.

robrix commented 9 years ago

(And, with it, all of the compilation performance penalties that come with multiple overloads of ++!)

robrix commented 9 years ago

Oh, and we’d use <* too.