BangPatterns bang is silently removed #116
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#116
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?
I think I saw this in do-notation. This is rather serious, as this kind of error will not be detected, but the code will behave differently.
I'll document a bit how I approach this issue for anyone interested.
First thing I noticed is that this does not appear in ghc-8.0. But in ghc-8.2.* a failing testcase would be
Looking at the parse trees via --dump-ast-full, they are indeed a good bit different. Just for the
!abc = def
part above, we have:8.0
8.2
As
brittany
currently ignores the first argument ofMatch
we ignore the only trace of the bang, namelySrcStrict
.I'll write a fix next.