[GHC] #7676: Conflicting definitions error for simple variable with guards

GHC cvs-ghc at haskell.org
Sat Feb 9 20:30:48 CET 2013


#7676: Conflicting definitions error for simple variable with guards
----------------------------------------+-----------------------------------
  Reporter:  Mathnerd314                |          Owner:                  
      Type:  bug                        |         Status:  closed          
  Priority:  normal                     |      Milestone:                  
 Component:  Compiler                   |        Version:  7.7             
Resolution:  wontfix                    |       Keywords:                  
        Os:  Unknown/Multiple           |   Architecture:  Unknown/Multiple
   Failure:  GHC rejects valid program  |     Difficulty:  Unknown         
  Testcase:                             |      Blockedby:                  
  Blocking:                             |        Related:                  
----------------------------------------+-----------------------------------

Comment(by guest):

 Note that this is not specific to guards.

 {{{
 f = 0     -- error
 f = 0

 g _ = 0   -- correct
 g _ = 0
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7676#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list