[GHC] #1307: Warning refers to code not in the source
GHC
trac at galois.com
Fri Apr 27 08:17:52 EDT 2007
#1307: Warning refers to code not in the source
-----------------------+----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.7
Severity: normal | Keywords:
Difficulty: Unknown | Os: Windows
Testcase: | Architecture: Unknown
-----------------------+----------------------------------------------------
Here's some source:
{{{
toXML = toXMLEx (Just . cap)
where cap ('_':cs) = cap cs
cap (c:cs) = toUpper c : cs
cap "" = ""
}}}
And here's a warning that refers to notElem which I've not used:
{{{
../Gmag/Paradise/Addins/XML/Prim.hs:47:8:
Warning: Pattern match(es) are non-exhaustive
In the definition of `cap':
Patterns not matched: #x with #x `notElem` [""#]
}}}
-- Lennart
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1307>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list