stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

Align of mutl_way_if incorrect

Open erikd opened this issue 2 months ago • 0 comments

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.

erikd avatar Apr 30 '24 06:04 erikd