-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
typecheckerIssues related to type-checking Cryptol code.Issues related to type-checking Cryptol code.
Description
I am playing with the new numeric constraints. I'm trying to write a very silly version of copy that uses recursive descent. However, the obvious way of using numeric constraints fails to type check. I tried other permutations of type annotations, but they all failed. Here is the function:
/* Silly recursive copy */
cpy : {n, a} (fin n) => [2 ^^ n]a -> [2 ^^ n]a
cpy a | n == 0 => a
| n > 1 => cpy`{n - 1} # cpy`{n - 1}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
typecheckerIssues related to type-checking Cryptol code.Issues related to type-checking Cryptol code.