fourmolu icon indicating copy to clipboard operation
fourmolu copied to clipboard

Leading arrows and Unicode misalignment

Open shlevy opened this issue 3 years ago • 0 comments

Is your bug specific to Fourmolu?

  • [x] Yes, I've verified that Ormolu does not have this bug

Describe the bug

With unicode syntax, a forall dot, and leading arrows, fourmolu misaligns the line with the dot:

  generalAllocate
    ∷ ∀ a
     . GeneralAllocate (AllocationContext (AllocateViaResource m)) SomeException () () a
    → AllocateViaResource m (ReleaseKey, a)

My config:

---
indentation: 2
function-arrows: leading
comma-style: leading
import-export-style: leading
indent-wheres: false
record-brace-space: false
newlines-between-decls: 1
haddock-style: multi-line
haddock-style-module:
let-style: auto
in-style: right-align
respectful: false
fixities: []
unicode: always

shlevy avatar Dec 13 '22 20:12 shlevy