chore: add Repr and Inhabited instances for Import
This commit is contained in:
parent
3e33fcc4f8
commit
69bd25af4f
1 changed files with 1 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ abbrev ConstMap := SMap Name ConstantInfo
|
|||
structure Import where
|
||||
module : Name
|
||||
runtimeOnly : Bool := false
|
||||
deriving Repr, Inhabited
|
||||
|
||||
instance : ToString Import := ⟨fun imp => toString imp.module ++ if imp.runtimeOnly then " (runtime)" else ""⟩
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue