@@ -50,8 +50,12 @@ genClauses fc n xs given
5050 logLvl 10 $ show argss ++ "\n" ++ show all_args
5151 logLvl 10 $ "Original: \n" ++
5252 showSep "\n" (map (\t -> showImp True (delab' i t True)) xs)
53+ -- add an infinite supply of explicit arguments to update the possible
54+ -- cases for (the return type may be variadic, or function type, sp
55+ -- there may be more case splitting that the idris_implicits record
56+ -- suggests)
5357 let parg = case lookupCtxt n (idris_implicits i) of
54− (p : _) -> p
58+ (p : _) -> p ++ repeat (PExp 0 False Placeholder "")
5559 _ -> repeat (pexp Placeholder)
5660 let tryclauses = mkClauses parg all_args
5761 logLvl 2 $ show (length tryclauses) ++ " initially to check"