chore: add Repr and Inhabited instances for Import

This commit is contained in:
Leonardo de Moura 2022-11-09 14:35:57 -08:00
parent 3e33fcc4f8
commit 69bd25af4f

View file

@ -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 ""⟩