@@ -235,6 +235,7 @@ data Command = Quit
235 | Pattelab PTerm
235 | Pattelab PTerm
236 | DebugInfo Name
236 | DebugInfo Name
237 | Search PTerm
237 | Search PTerm
238+ | CaseSplit Name PTerm
238 | SetOpt Opt
239 | SetOpt Opt
239 | UnsetOpt Opt
240 | UnsetOpt Opt
@@ -1155,9 +1156,10 @@ showImp ist impl colour tm = se 10 [] tm where
1155 = let [l, r] = getExps args in
1156 = let [l, r] = getExps args in
1156 bracket p 1 $ se 1 bnd l ++ " " ++ se p bnd op ++ " " ++ se 0 bnd r
1157 bracket p 1 $ se 1 bnd l ++ " " ++ se p bnd op ++ " " ++ se 0 bnd r
1157 se p bnd (PApp _ f as)
1158 se p bnd (PApp _ f as)
1158− = let args = getExps as in
1159+ = -- let args = getExps as in
1160+ bracket p 1 $ se 1 bnd f ++
1159− bracket p 1 $ se 1 bnd f ++ if impl then concatMap (sArg bnd) as
1161+ if impl then concatMap (sArg bnd) as
1160− else concatMap (seArg bnd) args
1162+ else concatMap (suiArg impl bnd) as
1161 se p bnd (PAppBind _ f as)
1163 se p bnd (PAppBind _ f as)
1162 = let args = getExps as in
1164 = let args = getExps as in
1163 "!" ++ (bracket p 1 $ se 1 bnd f ++ if impl then concatMap (sArg bnd) as
1165 "!" ++ (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
1233 sArg bnd (PConstraint _ _ tm _) = scArg bnd tm
1235 sArg bnd (PConstraint _ _ tm _) = scArg bnd tm
1234 sArg bnd (PTacImplicit _ _ n _ tm _) = stiArg bnd (n, tm)
1236 sArg bnd (PTacImplicit _ _ n _ tm _) = stiArg bnd (n, tm)
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 _ = ""
1236 seArg bnd arg = " " ++ se 0 bnd arg
1244 seArg bnd arg = " " ++ se 0 bnd arg
1237− siArg bnd (n, val) = " {" ++ show n ++ " = " ++ se 10 bnd val ++ "}"
1245+ siArg bnd (n, val) =
1247+ val' = se 10 bnd val in
1249+ then " {" ++ n' ++ "}"
1250+ else " {" ++ n' ++ " = " ++ val' ++ "}"
1238 scArg bnd val = " {{" ++ se 10 bnd val ++ "}}"
1251 scArg bnd val = " {{" ++ se 10 bnd val ++ "}}"
1239 stiArg bnd (n, val) = " {auto " ++ show n ++ " = " ++ se 10 bnd val ++ "}"
1252 stiArg bnd (n, val) = " {auto " ++ show n ++ " = " ++ se 10 bnd val ++ "}"