This website requires JavaScript.
Explore
Help
Sign In
GaloisInc
/
cryptol
Watch
1
Star
1
Fork
0
You've already forked cryptol
mirror of
https://github.com/GaloisInc/cryptol.git
synced
2024-12-24 08:24:19 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
8b08cca51d
cryptol
/
tests
/
issues
/
issue225.icry
5 lines
71 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add the mono-binds flag 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.
2014-12-16 04:48:25 +03:00
:set mono-binds=on
:l issue225.cry
:set mono-binds=off
Initial import from internal repo
2014-04-18 02:34:25 +04:00
:l issue225.cry
Reference in New Issue
Copy Permalink