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

Align of mutl_way_if incorrect #477

Open
erikd opened this issue Apr 30, 2024 · 0 comments
Open

Align of mutl_way_if incorrect #477

erikd opened this issue Apr 30, 2024 · 0 comments

Comments

@erikd
Copy link
Member

erikd commented Apr 30, 2024

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.

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

1 participant