on master help sign in
Erasure check errmsg briefer.
commit6b863780b0421da170ed931e9f9c71365ad1b0ec authorMatus Tejiscak <ziman@functor.sk> dateTue 11 Feb 2014, 17:41 (13 years ago) parent4d403c7
1 file changed+2−3
src/Idris/Erasure.hs+2−3
src/Idris/Erasure.hs+2−3
@@ -104,10 +104,9 @@ performUsageAnalysis = do
104104 | [Optimise col nt forc rec inaccessible] <- lookupCtxt n opt
105105 = let collision = IS.fromList inaccessible `IS.intersection` reachable
106106 in unless (IS.null collision) . ifail . concat $
107− [ "Erasure checker: in function "
108− , show n
107+ [ show n
109108 , ": inaccessible arguments reachable: "
110− , show (IS.toList collision)
109+ , intercalate ", " . map show $ IS.toList collision
111110 ]
112111
113112 | otherwise = return ()