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

Indentation bug with choice operator? #676

Open
2 tasks done
amosnier opened this issue Feb 10, 2023 · 0 comments
Open
2 tasks done

Indentation bug with choice operator? #676

amosnier opened this issue Feb 10, 2023 · 0 comments
Assignees

Comments

@amosnier
Copy link

Indentation bug with choice operator?

The produced indentation looks incorrect in an example with the choice operator.

  • I checked the issue tracker for existing issues about this problem.
  • I'm using the latest version of hindent.

Input haskell

int :: Parser Int
int =
  do char '-'
     n <- nat
     return (-n)
   <|> nat

Expected output haskell

int :: Parser Int
int =
  do char '-'
     n <- nat
     return (-n)
   <|> nat

Actual output haskell

int :: Parser Int
int =
  do char '-'
     n <- nat
     return (-n)
     <|> nat

See also bug-in-hindent-5-3-4-with-haskell-choice-operator.

@toku-sa-n toku-sa-n self-assigned this May 8, 2023
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

2 participants