Skip to content

[New module system] Cryptol Prelude not available when instantiating top-level modules #1455

@yav

Description

@yav

Here are some examples:

// in file F.cry
module F where
  parameter
    y : [32]
  f x = x + y

// In file A.cry
module A where
  y = 5

// In file X.cry
module X = F where
   y = 5

// In file Y.cry
module Y = F { A }

When loading X.cry or Y.cry the modules load correctly and the things defined in them are accessible, but things from the Cryptol Prelude are not. For example:

f 2 == 5

Complains with == is not defined. Using the :browse confirms that the Cryptol Prelude is not in scope.

Metadata

Metadata

Assignees

Labels

UXIssues related to the user experience (e.g., improved error messages)command-line-replRelated to Cryptol's text-based UIimporting instantiationsparameterized modulesRelated to Cryptol's parameterized modules

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions