[GHC] #7676: Conflicting definitions error for simple variable with guards
GHC
cvs-ghc at haskell.org
Sat Feb 9 03:50:52 CET 2013
#7676: Conflicting definitions error for simple variable with guards
--------------------------------------+-------------------------------------
Reporter: Mathnerd314 | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.7 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: GHC rejects valid program | Blockedby:
Blocking: | Related:
--------------------------------------+-------------------------------------
The following program:
{{{
a | True = 1
a | False = 2
}}}
produces an error (on 7.4.1 and 7.7.2012117):
{{{
Conflicting definitions for 'a'
}}}
The following two examples produce no error:
{{{
b | True = 1
| False = 2
c _ | True = 1
c _ | False = 2
}}}
I would expect `a`, `b`. and `c ()` to have identical behaviour.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7676>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list