haskell / stylish-haskell

Haskell code prettifier
Other
982 stars 150 forks source link

Align of mutl_way_if incorrect #477

Open erikd opened 4 months ago

erikd commented 4 months ago

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.