on master help sign in
Some debug info
4e762eeEdwin Brady
src/IRTS/Compiler.hs+5−1
@@ -343,7 +343,11 @@ irTerm vs env tm@(App _ f a) = do
343 case compare (length args) arity of
343 case compare (length args) arity of
344
344
345 -- overapplied
345 -- 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)
347
351
348 -- exactly saturated
352 -- exactly saturated
349 EQ | isNewtype
353 EQ | isNewtype