@@ -145,11 +145,12 @@ data Interface = Interface
145145 , iAliases :: Aliases
146146 , iFixities :: [(Decl.Assoc, Int, String)]
147147 , iPorts :: [String]
148+ , iPackage :: Package.Name
148149 }
149150
150151
151−toInterface :: CanonicalModule -> Interface
152−toInterface modul =
152+toInterface :: Package.Name -> CanonicalModule -> Interface
153+toInterface pkgName modul =
153154 let body' = body modul in
154155 Interface
155156 { iVersion = Package.versionToString Compiler.version
@@ -160,11 +161,12 @@ toInterface modul =
160161 , iAliases = aliases body'
161162 , iFixities = fixities body'
162163 , iPorts = ports body'
164+ , iPackage = pkgName
163165 }
164166
165167
166168instance 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
168170 put modul = do
169171 put (iVersion modul)
170172 put (iExports modul)
@@ -174,3 +176,4 @@ instance Binary Interface where
174176 put (iAliases modul)
175177 put (iFixities modul)
176178 put (iPorts modul)
179+ put (iPackage modul)