[project @ 2003-07-01 10:31:43 by simonpj]
authorsimonpj <unknown>
Tue, 1 Jul 2003 10:31:43 +0000 (10:31 +0000)
committersimonpj <unknown>
Tue, 1 Jul 2003 10:31:43 +0000 (10:31 +0000)
Wibble to printing HsSyn variables

ghc/compiler/hsSyn/HsImpExp.lhs

index 52ce08b..9013967 100644 (file)
@@ -112,6 +112,7 @@ isOperator ppr_v
        ('[':s)   -> False              -- []
        ('$':c:s) -> not (isAlpha c)    -- Don't treat $d as an operator
        (':':c:s) -> not (isAlpha c)    -- Don't treat :T as an operator
+       ('_':s)   -> False              -- Not an operator
        (c:s)     -> not (isAlpha c)    -- Starts with non-alpha
        other     -> False
     -- We use (showSDoc (ppr v)), rather than isSymOcc (getOccName v) simply so