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

empty where line after guard indents wrong #124

Open
Kazimazi opened this issue Feb 17, 2021 · 1 comment
Open

empty where line after guard indents wrong #124

Kazimazi opened this issue Feb 17, 2021 · 1 comment

Comments

@Kazimazi
Copy link

search :: Matrix [Digit] -> [Grid]
search cm
  | not (safe pm) = []
  | complete pm = [extract pm]
  | otherwise = concatMap search (expand1 pm)
  where
    pm = prune cm

Indenting the block above with Vip= would result with the faulty:

search :: Matrix [Digit] -> [Grid]
search cm
  | not (safe pm) = []
  | complete pm = [extract pm]
  | otherwise = concatMap search (expand1 pm)
where
  pm = prune cm

Either getting rid of the guards or not separating where part into multiple lines would lead to correct behavior.

@seasonedfish
Copy link

I have this issue too. When I type where after guards, I expect it to be indented to the level of the guards, but it isn't indented.

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