This commit is contained in:
aarne
2003-11-10 15:16:28 +00:00
parent 7a44450b34
commit a931676d90
4 changed files with 10 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ updateShellState opts sh (gr,(sgr,rts)) = do
prShellStateInfo :: ShellState -> String
prShellStateInfo sh = unlines [
"main abstract : " +++ maybe "(none)" P.prt (abstract sh),
"main abstract : " +++ abstractName sh,
"main concrete : " +++ maybe "(none)" P.prt (concrete sh),
"all concretes : " +++ unwords (map (P.prt . fst) (concretes sh)),
"canonical modules :" +++ unwords (map (P.prt .fst) (M.modules (canModules sh))),
@@ -150,6 +150,8 @@ prShellStateInfo sh = unlines [
"global options : " +++ prOpts (gloptions sh)
]
abstractName sh = maybe "(none)" P.prt (abstract sh)
-- throw away those abstracts that are not needed --- could be more aggressive
filterAbstracts :: Maybe Ident -> CanonGrammar -> CanonGrammar