mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-17 21:11:35 +03:00
284338c938
When `:set mono-binds=on`, any local definitions lacking type signatures will not be generalized (i.e., will be monomorphic). This reduces what is in most cases unnecessary polymorphism that can give rise to constraints that are difficult to solve. This also improves the performance of the Cryptol interpreter by lifting many polymorphic type applications out of the inner loops that are commonly defined as bindings in `where` clauses. The flag is on by default in the Cryptol REPL, and in most cases makes it possible to leave out more type signatures in `where` clauses than before. However, some programs really do rely on inferring polymorphic types for local variables; in this case adding an explicit polymorphic type signature to the local binding in question will make the program typecheck. |
||
---|---|---|
.. | ||
test01.cry | ||
test01.icry | ||
test01.icry.stdout | ||
test02.cry | ||
test02.icry | ||
test02.icry.stdout | ||
test03.cry | ||
test03.icry | ||
test03.icry.stdout | ||
test04.cry | ||
test04.icry | ||
test04.icry.stdout | ||
test05.cry | ||
test05.icry | ||
test05.icry.stdout | ||
test06.cry | ||
test06.icry | ||
test06.icry.stdout |