Changed pshow on CompState (which caused errors) to plain show, by adding a Show instance to CompState

This commit is contained in:
Neil Brown 2009-01-15 20:59:37 +00:00
parent e20671e44f
commit 0a98db5295
2 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ data CompState = CompState {
csUnifyId :: Int,
csWarnings :: [WarningReport]
}
deriving (Data, Typeable)
deriving (Data, Typeable, Show)
emptyState :: CompState
emptyState = CompState {

View File

@ -173,8 +173,8 @@ debugAST p
veryDebug $ pshow p
veryDebug $ "}}}"
veryDebug $ "{{{ State"
ps <- get
veryDebug $ pshow ps
ps <- getCompState
veryDebug $ show ps
veryDebug $ "}}}"
-- | Transform the 'A.Only' items in a 'A.Structured'.