@@ -97,10 +97,11 @@ type instance RuleResult GetLocatedImports = ([(Located ModuleName, Maybe Artifa
97
97
-- we can only report diagnostics for the current file.
98
98
type instance RuleResult ReportImportCycles = ()
99
99
100
- -- | Read the module interface file
101
- type instance RuleResult GetHiFile = HiFileResult
100
+ -- | Read the module interface file from disk. Throws an error for VFS files.
101
+ -- This is an internal rule, use 'GetModIface' instead.
102
+ type instance RuleResult GetModIfaceFromDisk = HiFileResult
102
103
103
- -- | Get a module interface, either from an interface file or a typechecked module
104
+ -- | Get a module interface details , either from an interface file or a typechecked module
104
105
type instance RuleResult GetModIface = HiFileResult
105
106
106
107
type instance RuleResult IsFileOfInterest = Bool
@@ -169,11 +170,11 @@ instance Hashable GhcSession
169
170
instance NFData GhcSession
170
171
instance Binary GhcSession
171
172
172
- data GetHiFile = GetHiFile
173
+ data GetModIfaceFromDisk = GetModIfaceFromDisk
173
174
deriving (Eq , Show , Typeable , Generic )
174
- instance Hashable GetHiFile
175
- instance NFData GetHiFile
176
- instance Binary GetHiFile
175
+ instance Hashable GetModIfaceFromDisk
176
+ instance NFData GetModIfaceFromDisk
177
+ instance Binary GetModIfaceFromDisk
177
178
178
179
data GetModIface = GetModIface
179
180
deriving (Eq , Show , Typeable , Generic )
0 commit comments