Warning police
authorsimonpj@microsoft.com <unknown>
Fri, 4 May 2007 12:24:19 +0000 (12:24 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 4 May 2007 12:24:19 +0000 (12:24 +0000)
compiler/basicTypes/OccName.lhs
compiler/simplCore/CSE.lhs

index 0ca7f5f..9fb287f 100644 (file)
@@ -78,7 +78,6 @@ import Data.Char
 
 -- Unicode TODO: put isSymbol in libcompat
 #if __GLASGOW_HASKELL__ > 604
-import Data.Char       ( isSymbol )
 #else
 isSymbol = const False
 #endif
index 11eec3e..39344fc 100644 (file)
@@ -334,7 +334,7 @@ addBinder :: CSEnv -> Id -> (CSEnv, Id)
 addBinder env@(CS cs in_scope sub) v
   | not (v `elemInScopeSet` in_scope) = (CS cs (extendInScopeSet in_scope v)  sub,                    v)
   | isId v                           = (CS cs (extendInScopeSet in_scope v') (extendVarEnv sub v v'), v')
-  | not (isId v)                     = WARN( True, ppr v )
+  | otherwise                        = WARN( True, ppr v )
                                        (CS emptyUFM in_scope                 sub,                     v)
        -- This last case is the unusual situation where we have shadowing of
        -- a type variable; we have to discard the CSE mapping