@@ -22,14 +22,15 @@ data ImportMethod = As String | Importing [String] | Hiding [String]
22 deriving (Eq, Ord, Show, Data, Typeable)
22 deriving (Eq, Ord, Show, Data, Typeable)
24data MetadataModule t v = MetadataModule {
24data MetadataModule t v = MetadataModule {
25− names :: [String],
25+ names :: [String],
26− path :: FilePath,
26+ path :: FilePath,
27− exports :: [String],
27+ exports :: [String],
28− imports :: [(String, ImportMethod)],
28+ imports :: [(String, ImportMethod)],
29− defs :: [Def t v],
29+ defs :: [Def t v],
30− types :: Map.Map String T.Variable,
30+ types :: Map.Map String T.Variable,
31− fixities :: [(Assoc, Int, String)],
31+ fixities :: [(Assoc, Int, String)],
32+ aliases :: [(String, [String], Type)],
32− aliases :: [(String, [String], Type)],
33+ datatypes :: [ (String, [String], [(String,[Type])]) ],
33 foreignImports :: [(String, LExpr t v, String, Type)],
34 foreignImports :: [(String, LExpr t v, String, Type)],
34 foreignExports :: [(String, String, Type)]
35 foreignExports :: [(String, String, Type)]