#2395: "Pattern match(es) are overlapped" warning with a single view pattern 
(ghc
6.9.20080606)
----------------------+-----------------------------------------------------
 Reporter:  rwbarton  |          Owner:             
     Type:  bug       |         Status:  new        
 Priority:  normal    |      Milestone:  6.10 branch
Component:  Compiler  |        Version:  6.9        
 Severity:  minor     |     Resolution:             
 Keywords:            |     Difficulty:  Unknown    
 Testcase:            |   Architecture:  x86        
       Os:  Linux     |  
----------------------+-----------------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown
  * milestone:  => 6.10 branch

Comment:

 This is due to this case of `check'` in `deSugar/Check.lhs`:
 {{{
 -- FIXME: hack to get view patterns through for now
    | otherwise    = ([([],[])],emptyUniqSet)
 }}}
 (the `emptyUniqSet` means "the pattern is never used").

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2395#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to