@@ -145,11 +145,12 @@ data Interface = Interface
145 , iAliases :: Aliases
145 , iAliases :: Aliases
146 , iFixities :: [(Decl.Assoc, Int, String)]
146 , iFixities :: [(Decl.Assoc, Int, String)]
147 , iPorts :: [String]
147 , iPorts :: [String]
148+ , iPackage :: Package.Name
151−toInterface :: CanonicalModule -> Interface
152+toInterface :: Package.Name -> CanonicalModule -> Interface
152−toInterface modul =
153+toInterface pkgName modul =
153 let body' = body modul in
154 let body' = body modul in
154 Interface
155 Interface
155 { iVersion = Package.versionToString Compiler.version
156 { iVersion = Package.versionToString Compiler.version
@@ -160,11 +161,12 @@ toInterface modul =
160 , iAliases = aliases body'
161 , iAliases = aliases body'
161 , iFixities = fixities body'
162 , iFixities = fixities body'
162 , iPorts = ports body'
163 , iPorts = ports body'
164+ , iPackage = pkgName
166instance Binary Interface where
168instance Binary Interface where
167− get = Interface <$> get <*> get <*> get <*> get <*> get <*> get <*> get <*> get
169+ get = Interface <$> get <*> get <*> get <*> get <*> get <*> get <*> get <*> get <*> get
168 put modul = do
170 put modul = do
169 put (iVersion modul)
171 put (iVersion modul)
170 put (iExports modul)
172 put (iExports modul)
@@ -174,3 +176,4 @@ instance Binary Interface where
174 put (iAliases modul)
176 put (iAliases modul)
175 put (iFixities modul)
177 put (iFixities modul)
176 put (iPorts modul)
178 put (iPorts modul)
179+ put (iPackage modul)