-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New module system] Cryptol Prelude not available when instantiating top-level modules #1455
Comments
Upon further investigation, the same thing would happen when instantiating any module, not just top level ones---it is just that we have no way to look inside those directly. This happens because module instantiations, such as
(2) wouldn't really work for top-level modules as, again, nothing is in scope there |
While we are implementing a solution for this, a quick workaround is to import that instantiated module into a separate file and load that into the REPL. Here is an example:
|
Turns out implementing option 3 wasn't really harder than option 1 so we just did option 3. |
Since this has not been mentioned explicitly yet: in particular, the instantiations of the functor parameters will also be in scope at the REPL when the instantiated module is focused. |
Here are some examples:
When loading
X.cry
orY.cry
the modules load correctly and the things defined in them are accessible, but things from the Cryptol Prelude are not. For example:Complains with
==
is not defined. Using the:browse
confirms that the Cryptol Prelude is not in scope.The text was updated successfully, but these errors were encountered: