-
Notifications
You must be signed in to change notification settings - Fork 346
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
Parse error: Illegal token: where #883
Comments
That is surprising. Would you care to add a unit test case?
|
@gracjan sure, will try to do that (after I fill another bug-report, hehe) |
Sufficient test suite is a prerequisite to actually fix the indentation problems once and for all. |
@gracjan can't agree more :) sorry for silly question: is there an info where tests are and how do I run them? Couldn't find on wiki. |
Hmm, Tests are in 'tests' directory, specifically 'tests/haskell-indentation-tests.el'. You run them using: make check or make check EMACS=/path/to/emacs |
Ok, added a PR with a test-case |
I've just been bitten by this as well, but if I remove the |
I think part of it is how much the (Another thing that works is to remove a bird track after the |
Interestingly, when indenting the main = do
putStrLn "Hello, world"
where it offers two indentation positions, but when one space is added before main = do
putStrLn "Hello, world"
where It seems there are more bugs around the |
@k-bx: thanks for the test, that really helped. Can somebody use their eyes on the fix? |
For this code:
If I press "enter" while having a cursor at the end of a
where
word, I see an errorno catch for tag: parse-error, "Illegal token: where"
(bug was updated with a simpler use-case)
The text was updated successfully, but these errors were encountered: