Skip to content

empty where line after guard indents wrong #124

Open
@Kazimazi

Description

@Kazimazi
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions