Skip to content

Warning refers to code not in the source

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

Trac metadata
Trac field Value
Version 6.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Windows
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information