@@ -93,10 +93,12 @@ data Tactic = Attack
9393-- Some utilites on proof and tactic states
9494
9595instance Show ProofState where
96− show (PS nm [] _ _ tm _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _)
97− = show nm ++ ": no more goals"
98− show (PS nm (h:hs) _ _ tm _ _ _ _ _ _ _ i _ _ _ ctxt _ _ _ _ _)
99− = let OK g = goal (Just h) tm
96+ show ps | [] <- holes ps
97+ = show (thname ps) ++ ": no more goals"
98+ show ps | (h : hs) <- holes ps
99+ = let tm = pterm ps
100+ nm = thname ps
101+ OK g = goal (Just h) tm
100102 wkenv = premises g in
101103 "Other goals: " ++ show hs ++ "\n" ++
102104 showPs wkenv (reverse wkenv) ++ "\n" ++
@@ -118,10 +120,12 @@ instance Show ProofState where
118120 showG ps b = showEnv ps (binderTy b)
119121
120122instance Pretty ProofState OutputAnnotation where
121− pretty (PS nm [] _ _ trm _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _) =
122− pretty nm <+> colon <+> text " no more goals."
123− pretty p@(PS nm (h:hs) _ _ tm _ _ _ _ _ _ _ i _ _ _ ctxt _ _ _ _ _) =
124− let OK g = goal (Just h) tm in
123+ pretty ps | [] <- holes ps =
124+ pretty (thname ps) <+> colon <+> text " no more goals."
125+ pretty ps | (h : hs) <- holes ps =
126+ let tm = pterm ps
127+ OK g = goal (Just h) tm
128+ nm = thname ps in
125129 let wkEnv = premises g in
126130 text "Other goals" <+> colon <+> pretty hs <+>
127131 prettyPs wkEnv (reverse wkEnv) <+>