-
Notifications
You must be signed in to change notification settings - Fork 20
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
example seq 10 | hawk -ad 'L.takeWhile (/="7") . L.dropWhile (/="3")' fails with Couldn't match type ‘B.ByteString’ with ‘Char’ #229
Comments
Thanks for reporting this! I have a test case which makes sure this example works as expected, but I've had to disable it, not because it failed with the error message you encountered, but because the environment in which the test suite is run has changed subtly over the years, causing tests which were previously succeeding to fail even though the code didn't change. For that reason, I have been reluctant to release a new version, as without tests, I didn't have much confidence that there were no regressions. Thanks for confirming that there has indeed been a regression! |
Despite the similarity in the error messages, the stackoverflow post is about a completely different problem.
Nope, that's not it, the |
Wait, the error message isn't complaining about
Aha! If we ignore the difference between |
The first example,
works just fine. That means
And it correctly distinguishes between the default (an arbitrary amount of whitespace) and a single space character:
But if we set it to the empty string, it's supposed to not split the lines into fields (thus causing the input to have type
|
The code which represents these possibilities uses |
Rewriting the parsing code to use a dedicated
now outputs
But since without the
I think the new behaviour makes more sense. |
Fixed by #230 |
When following the examples in the README and running:
I get the error:
There's a similar case posted on stackoverflow.
I'm using hawk version 1.1.1 on OS X 10.14.6.
The text was updated successfully, but these errors were encountered: