on master help sign in
Some debug info

This is mostly for #3066, but more debug info in error messages that always indicate a bug can't do any harm in general...

commit4e762eee184b00a830b9f1086f6bf343a06632e3 authorEdwin Brady <ecb10@st-andrews.ac.uk> dateFri 8 Apr 2016, 17:11 (11 years ago) parent8705d0f
1 file changed+5−1
src/IRTS/Compiler.hs+5−1
src/IRTS/Compiler.hs+5−1
@@ -343,7 +343,11 @@ irTerm vs env tm@(App _ f a) = do
343343 case compare (length args) arity of
344344
345345 -- overapplied
346− GT -> ifail ("overapplied data constructor: " ++ show tm)
346+ GT -> ifail ("overapplied data constructor: " ++ show tm ++
347+ "\nDEBUG INFO:\n" ++
348+ "Arity: " ++ show arity ++ "\n" ++
349+ "Arguments: " ++ show args ++ "\n" ++
350+ "Pruned arguments: " ++ show argsPruned)
347351
348352 -- exactly saturated
349353 EQ | isNewtype