|
Erroneous warning with n+k patterns: msg#00091lang.haskell.glasgow.bugs
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: error compiling Gtk2Hs 0.9.9, Jens Petersen |
|---|---|
| Next by Date: | runghc takes modules from current working directory, Frederik Eaton |
| Previous by Thread: | Compilation error with -prof, Jan Christiansen |
| Next by Thread: | RE: Erroneous warning with n+k patterns, Simon Peyton-Jones |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |