@@ -51,11 +51,11 @@ elabType info syn doc fc opts n ty' = {- let ty' = piBind (params info) ty_in
5151 do checkUndefined fc n
5252 ctxt <- getContext
5353 i <- getIState
54− logLvl 3 $ show n ++ " pre-type " ++ showImp True False ty'
54+ logLvl 3 $ show n ++ " pre-type " ++ showImp Nothing True False ty'
5555 ty' <- addUsingConstraints syn fc ty'
5656 ty' <- implicit syn n ty'
5757 let ty = addImpl i ty'
58− logLvl 2 $ show n ++ " type " ++ showImp True False ty
58+ logLvl 2 $ show n ++ " type " ++ showImp Nothing True False ty
5959 ((tyT, defer, is), log) <- tclift $ elaborate ctxt n (TType (UVal 0)) []
6060 (erun fc (build i info False n ty))
6161 ds <- checkDef fc defer
@@ -482,7 +482,7 @@ elabCon info syn tn codata (doc, n, t_in, fc)
482482 i <- getIState
483483 t_in <- implicit syn n (if codata then mkLazy t_in else t_in)
484484 let t = addImpl i t_in
485− logLvl 2 $ show fc ++ ":Constructor " ++ show n ++ " : " ++ showImp True False t
485+ logLvl 2 $ show fc ++ ":Constructor " ++ show n ++ " : " ++ showImp Nothing True False t
486486 ((t', defer, is), log) <- tclift $ elaborate ctxt n (TType (UVal 0)) []
487487 (erun fc (build i info False n t))
488488 logLvl 2 $ "Rechecking " ++ show t'
@@ -589,9 +589,9 @@ elabClauses info fc opts n_in cs = let n = liftname info n_in in
589589 missing' <- filterM (checkPossible info fc True n) missing
590590 let clhs = map getLHS pdef
591591 logLvl 2 $ "Must be unreachable:\n" ++
592− showSep "\n" (map (showImp True False) missing') ++
592+ showSep "\n" (map (showImp Nothing True False) missing') ++
593593 "\nAgainst: " ++
594− showSep "\n" (map (\t -> showImp True False (delab ist t)) (map getLHS pdef))
594+ showSep "\n" (map (\t -> showImp Nothing True False (delab ist t)) (map getLHS pdef))
595595 -- filter out anything in missing' which is
596596 -- matched by any of clhs. This might happen since
597597 -- unification may force a variable to take a
@@ -711,7 +711,7 @@ elabVal info aspat tm_in
711711 = do ctxt <- getContext
712712 i <- getIState
713713 let tm = addImpl i tm_in
714− logLvl 10 (showImp True False tm)
714+ logLvl 10 (showImp Nothing True False tm)
715715 -- try:
716716 -- * ordinary elaboration
717717 -- * elaboration as a Type
@@ -776,7 +776,7 @@ elabClause info tcgen (cnum, PClause fc fname lhs_in withs rhs_in whereblock)
776776 _ -> []
777777 let params = getParamsInType i [] fn_is fn_ty
778778 let lhs = addImplPat i (propagateParams params (stripLinear i lhs_in))
779− logLvl 5 ("LHS: " ++ show fc ++ " " ++ showImp True False lhs)
779+ logLvl 5 ("LHS: " ++ show fc ++ " " ++ showImp Nothing True False lhs)
780780 logLvl 4 ("Fixed parameters: " ++ show params ++ " from " ++ show (fn_ty, fn_is))
781781 ((lhs', dlhs, []), _) <-
782782 tclift $ elaborate ctxt (MN 0 "patLHS") infP []
@@ -806,10 +806,10 @@ elabClause info tcgen (cnum, PClause fc fname lhs_in withs rhs_in whereblock)
806806 mapM_ (elabDecl' EAll info) wbefore
807807 -- Now build the RHS, using the type of the LHS as the goal.
808808 i <- getIState -- new implicits from where block
809− logLvl 5 (showImp True False (expandParams decorate newargs defs (defs \\ decls) rhs_in))
809+ logLvl 5 (showImp Nothing True False (expandParams decorate newargs defs (defs \\ decls) rhs_in))
810810 let rhs = addImplBoundInf i (map fst newargs) (defs \\ decls)
811811 (expandParams decorate newargs defs (defs \\ decls) rhs_in)
812− logLvl 2 $ "RHS: " ++ showImp True False rhs
812+ logLvl 2 $ "RHS: " ++ showImp Nothing True False rhs
813813 ctxt <- getContext -- new context with where block added
814814 logLvl 5 "STARTING CHECK"
815815 ((rhs', defer, is), _) <-
@@ -911,7 +911,7 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
911911 -- pattern bindings
912912 i <- getIState
913913 let lhs = addImplPat i lhs_in
914− logLvl 5 ("LHS: " ++ showImp True False lhs)
914+ logLvl 5 ("LHS: " ++ showImp Nothing True False lhs)
915915 ((lhs', dlhs, []), _) <-
916916 tclift $ elaborate ctxt (MN 0 "patLHS") infP []
917917 (erun fc (buildTC i info True tcgen fname (infTerm lhs)))
@@ -923,7 +923,7 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
923923 logLvl 5 ("Checked " ++ show clhs)
924924 let bargs = getPBtys lhs_tm
925925 let wval = addImplBound i (map fst bargs) wval_in
926− logLvl 5 ("Checking " ++ showImp True False wval)
926+ logLvl 5 ("Checking " ++ showImp Nothing True False wval)
927927 -- Elaborate wval in this context
928928 ((wval', defer, is), _) <-
929929 tclift $ elaborate ctxt (MN 0 "withRHS")
@@ -980,7 +980,7 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
980980 (map (pexp . (PRef fc) . fst) bargs_pre ++
981981 pexp wval :
982982 (map (pexp . (PRef fc) . fst) bargs_post))
983− logLvl 5 ("New RHS " ++ showImp True False rhs)
983+ logLvl 5 ("New RHS " ++ showImp Nothing True False rhs)
984984 ctxt <- getContext -- New context with block added
985985 i <- getIState
986986 ((rhs', defer, is), _) <-
@@ -1009,8 +1009,8 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
10091009 mkAux wname toplhs ns ns' (PClause fc n tm_in (w:ws) rhs wheres)
10101010 = do i <- getIState
10111011 let tm = addImplPat i tm_in
1012− logLvl 2 ("Matching " ++ showImp True False tm ++ " against " ++
1013− showImp True False toplhs)
1012+ logLvl 2 ("Matching " ++ showImp Nothing True False tm ++ " against " ++
1013+ showImp Nothing True False toplhs)
10141014 case matchClause i toplhs tm of
10151015 Left f -> fail $ show fc ++ ":with clause does not match top level"
10161016 Right mvars ->
@@ -1020,8 +1020,8 @@ elabClause info tcgen (_, PWith fc fname lhs_in withs wval_in withblock)
10201020 mkAux wname toplhs ns ns' (PWith fc n tm_in (w:ws) wval withs)
10211021 = do i <- getIState
10221022 let tm = addImplPat i tm_in
1023− logLvl 2 ("Matching " ++ showImp True False tm ++ " against " ++
1024− showImp True False toplhs)
1023+ logLvl 2 ("Matching " ++ showImp Nothing True False tm ++ " against " ++
1024+ showImp Nothing True False toplhs)
10251025 withs' <- mapM (mkAuxC wname toplhs ns ns') withs
10261026 case matchClause i toplhs tm of
10271027 Left _ -> fail $ show fc ++ "with clause does not match top level"
@@ -1118,7 +1118,7 @@ elabClass info syn doc fc constraints tn ps ds
11181118 getMName (PTy _ _ _ _ n _) = nsroot n
11191119 tdecl allmeths (PTy doc syn _ o n t)
11201120 = do t' <- implicit' syn allmeths n t
1121− logLvl 5 $ "Method " ++ show n ++ " : " ++ showImp True False t'
1121+ logLvl 5 $ "Method " ++ show n ++ " : " ++ showImp Nothing True False t'
11221122 return ( (n, (toExp (map fst ps) Exp t')),
11231123 (n, (doc, o, (toExp (map fst ps) Imp t'))),
11241124 (n, (syn, o, t) ) )
@@ -1152,8 +1152,8 @@ elabClass info syn doc fc constraints tn ps ds
11521152 let lhs = PApp fc (PRef fc cfn) [pconst capp]
11531153 let rhs = PResolveTC (FC "HACK" 0)
11541154 let ty = PPi constraint (MN 0 "pc") c con
1155− iLOG (showImp True False ty)
1156− iLOG (showImp True False lhs ++ " = " ++ showImp True False rhs)
1155+ iLOG (showImp Nothing True False ty)
1156+ iLOG (showImp Nothing True False lhs ++ " = " ++ showImp Nothing True False rhs)
11571157 i <- getIState
11581158 let conn = case con of
11591159 PRef _ n -> n
@@ -1177,9 +1177,9 @@ elabClass info syn doc fc constraints tn ps ds
11771177 let anames = map (\x -> MN x "arg") [0..]
11781178 let lhs = PApp fc (PRef fc m) (pconst capp : lhsArgs margs anames)
11791179 let rhs = PApp fc (getMeth mnames all m) (rhsArgs margs anames)
1180− iLOG (showImp True False ty)
1180+ iLOG (showImp Nothing True False ty)
11811181 iLOG (show (m, ty', capp, margs))
1182− iLOG (showImp True False lhs ++ " = " ++ showImp True False rhs)
1182+ iLOG (showImp Nothing True False lhs ++ " = " ++ showImp Nothing True False rhs)
11831183 return [PTy doc syn fc o m ty',
11841184 PClauses fc [Inlinable] m [PClause fc m lhs [] rhs []]]
11851185
@@ -1520,8 +1520,8 @@ elabCaseBlock info d@(PClauses f o n ps)
15201520
15211521checkInferred :: FC -> PTerm -> PTerm -> Idris ()
15221522checkInferred fc inf user =
1523− do logLvl 6 $ "Checked to\n" ++ showImp True False inf ++ "\n\nFROM\n\n" ++
1524− showImp True False user
1523+ do logLvl 6 $ "Checked to\n" ++ showImp Nothing True False inf ++ "\n\nFROM\n\n" ++
1524+ showImp Nothing True False user
15251525 logLvl 10 $ "Checking match"
15261526 i <- getIState
15271527 tclift $ case matchClause' True i user inf of
@@ -1538,8 +1538,8 @@ checkInferred fc inf user =
15381538inferredDiff :: FC -> PTerm -> PTerm -> Idris Bool
15391539inferredDiff fc inf user =
15401540 do i <- getIState
1541− logLvl 6 $ "Checked to\n" ++ showImp True False inf ++ "\n" ++
1542− showImp True False user
1541+ logLvl 6 $ "Checked to\n" ++ showImp Nothing True False inf ++ "\n" ++
1542+ showImp Nothing True False user
15431543 tclift $ case matchClause' True i user inf of
15441544 Right vs -> return False
15451545 Left (x, y) -> return True