Why is Prelude.mod marked as a total function when it is not defined when the second argument is zero?
Main> :total mod
Prelude.Num.mod is total
I was just bit by this and ran into a run-time error, even though Idris2 assured me my functions were total.
-
2it's a known bugjoel– joel2024年07月03日 13:24:31 +00:00Commented Jul 3, 2024 at 13:24
-
1I see. Don't you want to post it as an answer?impresso– impresso2024年07月12日 03:05:59 +00:00Commented Jul 12, 2024 at 3:05