@@ -280,22 +280,22 @@ genAll i (addPH, args)
280 nc' o = o
280 nc' o = o
282 otherPats :: PTerm -> [PTerm]
282 otherPats :: PTerm -> [PTerm]
283− otherPats o@(PRef fc hl n) = ph $ ops fc n [] o
283+ otherPats (PRef fc hl n) = ph $ ops fc n []
284− otherPats o@(PApp _ (PRef fc hl n) xs) = ph $ ops fc n xs o
284+ otherPats (PApp _ (PRef fc hl n) xs) = ph $ ops fc n xs
285− otherPats o@(PPair fc hls _ l r)
285+ otherPats (PPair fc hls _ l r)
286 = ph $ ops fc pairCon
286 = ph $ ops fc pairCon
287 ([pimp (sUN "A") Placeholder True,
287 ([pimp (sUN "A") Placeholder True,
288 pimp (sUN "B") Placeholder True] ++
288 pimp (sUN "B") Placeholder True] ++
289− [pexp l, pexp r]) o
289+ [pexp l, pexp r])
290− otherPats o@(PDPair fc hls p t _ v)
290+ otherPats (PDPair fc hls p t _ v)
291 = ph $ ops fc sigmaCon
291 = ph $ ops fc sigmaCon
292 ([pimp (sUN "a") Placeholder True,
292 ([pimp (sUN "a") Placeholder True,
293 pimp (sUN "P") Placeholder True] ++
293 pimp (sUN "P") Placeholder True] ++
294− [pexp t,pexp v]) o
294+ [pexp t,pexp v])
295 otherPats o@(PConstant _ c) = ph [o, nextConst o]
295 otherPats o@(PConstant _ c) = ph [o, nextConst o]
296 otherPats arg = return Placeholder
296 otherPats arg = return Placeholder
298− ops fc n xs o
298+ ops fc n xs
299 | (TyDecl c@(DCon _ arity _) ty : _) <- lookupDef n (tt_ctxt i)
299 | (TyDecl c@(DCon _ arity _) ty : _) <- lookupDef n (tt_ctxt i)
300 = do xs' <- mapM otherPats (map getExpTm xs)
300 = do xs' <- mapM otherPats (map getExpTm xs)
301 let p = resugar (PApp fc (PRef fc [] n) (zipWith upd xs' xs))
301 let p = resugar (PApp fc (PRef fc [] n) (zipWith upd xs' xs))
@@ -303,7 +303,7 @@ genAll i (addPH, args)
303 case lookupCtxt tyn (idris_datatypes i) of
303 case lookupCtxt tyn (idris_datatypes i) of
304 (TI ns _ _ _ _ : _) -> p : map (mkPat fc) (ns \\ [n])
304 (TI ns _ _ _ _ : _) -> p : map (mkPat fc) (ns \\ [n])
306− ops fc n arg o = return Placeholder
306+ ops fc n arg = return Placeholder
308 getExpTm (PImp _ True _ _ _) = Placeholder -- machine inferred, no point!
308 getExpTm (PImp _ True _ _ _) = Placeholder -- machine inferred, no point!
309 getExpTm t = getTm t
309 getExpTm t = getTm t