Don't warn about pattern-bindings of the form `let !_ = rhs`
With GHC 7.8.2, code like
let !_ = rqPostParams rq
let !_ = rqParams rq
triggers the following warnings:
src/Snap/Internal/Test/RequestBuilder.hs:150:13: Warning:
This pattern-binding binds no variables: !_ = rqPostParams rq
src/Snap/Internal/Test/RequestBuilder.hs:151:13: Warning:
This pattern-binding binds no variables: !_ = rqParams rq
I think that let !_ = rhs shouldn't trigger a warning, just like let _ = rhs doesn't.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.8.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |