Brittany fails to format code with Haddock comments in module export list #365
Labels
No Label
blocked: dependency
blocked: info-needed
bug
duplicate
enhancement
fixed in HEAD
help wanted
hs:arrows
hs:brackets
hs:classes
hs:comments
hs:do-notation
hs:guards
hs:lists
hs:operators
hs:patterns
hs:records
hs:types
invalid
language extension support
layouting
needs confirmation
priority: high
priority: low
question
revisit before next release
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hexagoxel/brittany#365
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Most recent version of Brittany from
master
(0aa04af
) fails when Haddock comments are present in list of exported declarations. Here is the example to replicate:Output:
Until now I was using quite old version (built from
434854f
) and that works fine.@tfausak Do you have any idea if there's any workaround for this? Usually it makes brittany unusable for any code containing comments in export list. Or if you could point me (at least approximately) into part of brittany codebase that could be responsible for this, I could try to find the issue (comparing with older version where it worked, etc). I'm happy to help, it's just super difficult for me to get into brittany codebase, mainly due to ghc-exactprint, for which I cannot find any reasonable introduction or documentation.
Sorry, I do not have a workaround for this.
I don't know where exactly to look for this behavior. It certainly changed as part of #357, but lots of things changed there.