Skip to content

Commit

Permalink
Remove bogus-looking check, which was causing Trac #7894
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Peyton Jones committed Jun 6, 2013
1 parent a1a67b5 commit 9b817e5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions compiler/basicTypes/OccName.lhs
Expand Up @@ -482,18 +482,12 @@ isValOcc (OccName DataName _) = True
isValOcc _ = False
isDataOcc (OccName DataName _) = True
isDataOcc (OccName VarName s)
| isLexCon s = pprPanic "isDataOcc: check me" (ppr s)
-- Jan06: I don't think this should happen
isDataOcc _ = False
-- | Test if the 'OccName' is a data constructor that starts with
-- a symbol (e.g. @:@, or @[]@)
isDataSymOcc :: OccName -> Bool
isDataSymOcc (OccName DataName s) = isLexConSym s
isDataSymOcc (OccName VarName s)
| isLexConSym s = pprPanic "isDataSymOcc: check me" (ppr s)
-- Jan06: I don't think this should happen
isDataSymOcc _ = False
-- Pretty inefficient!
Expand Down

0 comments on commit 9b817e5

Please sign in to comment.