@@ -235,6 +235,7 @@ data Command = Quit
235235 | Pattelab PTerm
236236 | DebugInfo Name
237237 | Search PTerm
238+ | CaseSplit Name PTerm
238239 | SetOpt Opt
239240 | UnsetOpt Opt
240241 | NOP
@@ -1155,9 +1156,10 @@ showImp ist impl colour tm = se 10 [] tm where
11551156 = let [l, r] = getExps args in
11561157 bracket p 1 $ se 1 bnd l ++ " " ++ se p bnd op ++ " " ++ se 0 bnd r
11571158 se p bnd (PApp _ f as)
1158− = let args = getExps as in
1159− bracket p 1 $ se 1 bnd f ++ if impl then concatMap (sArg bnd) as
1160− else concatMap (seArg bnd) args
1159+ = -- let args = getExps as in
1160+ bracket p 1 $ se 1 bnd f ++
1161+ if impl then concatMap (sArg bnd) as
1162+ else concatMap (suiArg impl bnd) as
11611163 se p bnd (PAppBind _ f as)
11621164 = let args = getExps as in
11631165 "!" ++ (bracket p 1 $ se 1 bnd f ++ if impl then concatMap (sArg bnd) as
@@ -1233,8 +1235,19 @@ showImp ist impl colour tm = se 10 [] tm where
12331235 sArg bnd (PConstraint _ _ tm _) = scArg bnd tm
12341236 sArg bnd (PTacImplicit _ _ n _ tm _) = stiArg bnd (n, tm)
12351237
1238+ -- show argument, implicits given by the user also shown
1239+ suiArg impl bnd (PImp _ mi _ n tm _)
1240+ | impl || not mi = siArg bnd (n, tm)
1241+ suiArg impl bnd (PExp _ _ tm _) = seArg bnd tm
1242+ suiArg impl bnd _ = ""
1243+
12361244 seArg bnd arg = " " ++ se 0 bnd arg
1237− siArg bnd (n, val) = " {" ++ show n ++ " = " ++ se 10 bnd val ++ "}"
1245+ siArg bnd (n, val) =
1246+ let n' = show n
1247+ val' = se 10 bnd val in
1248+ if (n' == val')
1249+ then " {" ++ n' ++ "}"
1250+ else " {" ++ n' ++ " = " ++ val' ++ "}"
12381251 scArg bnd val = " {{" ++ se 10 bnd val ++ "}}"
12391252 stiArg bnd (n, val) = " {auto " ++ show n ++ " = " ++ se 10 bnd val ++ "}"
12401253