Brittany not idempotent -- spaces get inserted #68
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#68
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?
Brittany inserts one additional space every time it is run on this expression.
This is the original input:
The first output is:
with an additional space before
c <- cs
. Each run inserts an additional space there.This is with
(This is
-XParallelListComp
, right?)This is more or less a bug in the workaround code for (yet) unhandled extensions. I have just added a
Text.trim
which fixes this particular issue, but this workaround fixup might break other such cases (for other unhandled extensions..)The real fix is of course to support
-XParallelListComp
, which is the only way to properly and safely support (multiline) parallel list comps. I don't have time to implement this. PR welcome.Nonetheless I will consider this fixed. Please open another issue if you desire support for
-XParallelListComp
.