@@ -10,7 +10,7 @@ import qualified Type.Solve as Solve
11import SourceSyntax.Module as Module
11import SourceSyntax.Module as Module
12import qualified SourceSyntax.Expression as Expr
12import qualified SourceSyntax.Expression as Expr
13−import SourceSyntax.Location (none)
13+import SourceSyntax.Location (Located, noneNoDocs)
14import SourceSyntax.PrettyPrint
14import SourceSyntax.PrettyPrint
15import Text.PrettyPrint
15import Text.PrettyPrint
16import qualified Type.State as TS
16import qualified Type.State as TS
@@ -38,7 +38,7 @@ infer interfaces modul = unsafePerformIO $ do
38 let allTypes = ctors ++ importedVars
38 let allTypes = ctors ++ importedVars
39 vars = concatMap (fst . snd) allTypes
39 vars = concatMap (fst . snd) allTypes
40 header = Map.map snd (Map.fromList allTypes)
40 header = Map.map snd (Map.fromList allTypes)
41− environ = none . T.CLet [ T.Scheme vars [] (none T.CTrue) header ]
41+ environ = noneNoDocs . T.CLet [ T.Scheme vars [] (noneNoDocs T.CTrue) header ]
43 fvar <- T.var T.Flexible
43 fvar <- T.var T.Flexible
44 constraint <- environ `fmap` TcExpr.constrain env (program modul) (T.VarN fvar)
44 constraint <- environ `fmap` TcExpr.constrain env (program modul) (T.VarN fvar)