unused variable warning in view pattern is wrong
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE ViewPatterns #-}
test x = let (r,(r++) -> rs) = x in rs
Warning: Defined but not used: `r'
This seems only to happen in let (not in function clauses, or in lambdas, or in case).
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.12.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | vogt.adam@gmail.com |
| Operating system | |
| Architecture |