Skip to content

Align of mutl_way_if incorrect #477

@erikd

Description

@erikd

In my .stylish-haskell.yaml I have:

  # Never align the right hand side of some elements.
  - simple_align:
      cases: never
      top_level_patterns: never
      records: never
      multi_way_if: never
  - squash: {}

and after using stylish-haskell on one of my files, I get the following as part of the diff:

     st <- getFileStatus fp
     if
       | isRegularFile st -> pure (fp : files, dirs)
-      | isDirectory st -> pure (files, fp : dirs)
-      | otherwise -> pure (files, dirs)
+      | isDirectory st   -> pure (files, fp : dirs)
+      | otherwise        -> pure (files, dirs)

Using version 0.14.6.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions