[New module system] Instantiate functor while importing #1368
Labels
language
Changes or extensions to the language
parameterized modules
Related to Cryptol's parameterized modules
#1363 feature request
I would be extremely convenient to be able to instantiate a functor while importing it. The following example demonstrates how a module
App
can import a functorLib
by instantiating it withI_inst
an instance of the interfaceI
thatLib
is parametrized by.Additionally, the following example demonstrates how a module
App
can import a functorLib
that is parametrized by an anonymous module (encoded by theparameter
syntax) by immediately instantiating its parameters right after the import statement using awhere
clause.The text was updated successfully, but these errors were encountered: