== and div on a recursive type #502
-
I was having trouble with the
giving me an error:
so i tried re-arranging in various ways, including liberal use of
but without any success - until i made the mutual-recursion into single-recursion:
and now it checks and runs fine I'm not sure what I'm observing here - any clues greatfully received - does mutual recursion break using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
By the way your datastructure isn't actually But yes, it is known that mutual indirect recursion breaks Note that I think direct mutual-recursion doesn't break with |
Beta Was this translation helpful? Give feedback.
By the way your datastructure isn't actually
rec
, you can just use a plain type here.But yes, it is known that mutual indirect recursion breaks
pretend-decreasing
.Note that I think direct mutual-recursion doesn't break with
pretend-decreasing
(if they are both named top level functions that refer to each other directly, and not via higher order functions).