Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New library with Hspec expectations for testing Parsec parsers #111

Closed
sjakobi opened this issue Aug 23, 2019 · 1 comment
Closed

New library with Hspec expectations for testing Parsec parsers #111

sjakobi opened this issue Aug 23, 2019 · 1 comment

Comments

@sjakobi
Copy link
Member

sjakobi commented Aug 23, 2019

See https://hackage.haskell.org/package/hspec-parsec.

The package mostly offers a bit of setup documentation for now – I made it for a friend who is learning to use Parsec for a university project. Feedback and contributions are welcome!

Should I add it to the README's links section anyway?

@hvr
Copy link
Member

hvr commented Apr 13, 2020

Tbh, I'm not a fan of promoting (and thereby legitimize) such trivial libraries as individual packages -- even if well-intended -- being uploaded to Hackage in the first place. They contain what comes down to trivial one-liner definitions which ought either be part of another package or just be documented in a Wiki page or README somewhere to be inlined directly into testsuites.

@hvr hvr closed this as completed Apr 13, 2020
int-index pushed a commit to int-index/parsec that referenced this issue Sep 18, 2020
Make it a looped KeyCommand inside a single call to runInputCmdT,
rather than calling runInputCmdT once for each character.

This removes some noise by letting us clear the prompt before printing the key that was read. 
 It also hopefully makes it closer to "real" results when entering multiple keys (e.g., holding them down).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants