|
RE: Erroneous warning with n+k patterns: msg#00097lang.haskell.glasgow.bugs
OK, well I've fixed this one. But not overlap warnings in general Simon | -----Original Message----- | From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx [mailto:glasgow-haskell-bugs- | bounces@xxxxxxxxxxx] On Behalf Of Ian Lynagh | Sent: 20 August 2005 02:39 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Subject: Erroneous warning with n+k patterns | | | Hi all, | | This function: | | g :: Int -> Int | g (x+1) = 1 | g _ = 0 | | (erroneously) gives this warning: | | Warning: Pattern match(es) are overlapped | In the definition of `g': g _ = ... | | I'm not sure if this is covered by the first item on | http://www.haskell.org/ghc/docs/latest/html/users_guide/bugs.html | but if so (well, probably even if not; I've grown quite attached to | -Wall -Werror) then I'd like to add my voice to those who would like to | see the mentioned overhaul done. | | | Thanks | Ian | | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Undefined symbols on new install of ghc 6.2.2, Sigbjorn Finne |
|---|---|
| Next by Date: | RE: Undefined symbols on new install of ghc 6.2.2, Alastair Reid |
| Previous by Thread: | Erroneous warning with n+k patterns, Ian Lynagh |
| Next by Thread: | runghc takes modules from current working directory, Frederik Eaton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |