j-mie6 / gigaparsec

Refreshed parsec-style library for compatibility with Scala parsley
https://j-mie6.github.io/gigaparsec/
BSD 3-Clause "New" or "Revised" License
16 stars 4 forks source link

Make use of `oneShot`? #16

Open j-mie6 opened 1 year ago

j-mie6 commented 1 year ago

The oneShot special function can be used to identify a function as being called a maximum of one time. This can allow for more aggressive optimisations. Is it possible to mark out continuations with this?