Abstract structure of an import statement.
- module : Name
- importAll : Bool
import all; whether to import and expose all data saved by the module. - isExported : Bool
Whether to activate this import when the current module itself is imported.
- isMeta : Bool
Whether to import IR for all definitions (transitively) reachable.
Instances For
Module data files used for an import statement.
This structure is designed for efficient JSON serialization.
- ofArrays :: (
- toArrays : Array (Array System.FilePath)
Two nested arrays of variable size:
#[#[olean, oleanServer?, oleanPrivate?], #[irSig, ir?]] - )
Instances For
Instances For
Instances For
Instances For
Files containing data for a single module.
- lean? : Option System.FilePath
- olean? : Option System.FilePath
- oleanServer? : Option System.FilePath
- oleanPrivate? : Option System.FilePath
- ilean? : Option System.FilePath
- irSig? : Option System.FilePath
- ir? : Option System.FilePath
- c? : Option System.FilePath
- bc? : Option System.FilePath
Instances For
Instances For
Instances For
A Lean plugin. Plugins are shared libraries with an initialization function.
- path : System.FilePath
The path to the plugin's shared library.
The name of the plugin initialization function symbol. If
none, the symbol is derived from the file name of the shared library.
Instances For
Constructs a plugin from just a shared library's path,
inferring the name of the initialization function from the library's name.
Instances For
The type of module package identifiers.
This is a String that is used to disambiguate native symbol prefixes between
different packages (and different versions of the same package).
Instances For
A module's setup information as described by a JSON file.
- name : Name
The name of the module.
The package to which the module belongs (if any).
- isModule : Bool
Whether the module, by default, participates in the module system. Even if
false, a module can still choose to participate by usingmodulein its header. The module's direct imports. If
none, uses the imports from the module header.- importArts : NameMap ImportArtifacts
Pre-resolved artifacts of transitively imported modules.
- dynlibs : Array System.FilePath
Dynamic libraries to load with the module.
Plugins to initialize with the module.
- options : LeanOptions
Additional options for the module.
Instances For
Load a ModuleSetup from a JSON file.