You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -14,8 +14,6 @@
data A = A
- {
- -- |
- --
+ { -- |
a :: Int
}
AST of input and AST of formatted code differ.
at ***
Please, consider reporting the bug.
To format anyway, use --unsafe.
Environment
macOS 14.1.2
ormolu 0.7.7.0 using ghc-lib-parser 9.10.1.20240511
The text was updated successfully, but these errors were encountered:
there is a space after --. That causes the GHC parser to not insert DocD; the comment only shows up as non-Haddock AST comment (see #901 (comment) for context); but in the output, it does, so the AST differs.
Formatting the following code:
Results in the following error:
Environment
The text was updated successfully, but these errors were encountered: