Skip to content
Snippets Groups Projects
Commit a1c3d409 authored by Matthias Böhm's avatar Matthias Böhm
Browse files

using buildTypeSchemes*NoExpand* in Imports instead of buildTypeSchemes

parent 72cf0de9
Branches
Tags
No related merge requests found
......@@ -22,7 +22,7 @@
type signatures.
-}
module Checks.TypeClassesCheck (buildTypeSchemes, typeClassesCheck) where
module Checks.TypeClassesCheck (buildTypeSchemesNoExpand, typeClassesCheck) where
import Curry.Syntax.Type as ST hiding (IDecl)
import Env.ClassEnv
......
......@@ -41,7 +41,7 @@ import Env.TypeConstructor
import Env.Value
import Env.ClassEnv as CE
import Checks.TypeClassesCheck as TCC (buildTypeSchemes)
import Checks.TypeClassesCheck as TCC (buildTypeSchemesNoExpand)
import CompilerEnv
import CompilerOpts
......@@ -784,9 +784,7 @@ importInterfaceIntf cEnv i@(Interface m _ _) env = env
-- The type schemes might get lost, so we have to recompute them. We
-- also have to set the hidden flags again, looking them up in the old
-- class environment.
-- As we don't expand the type scheme, we can pass an empty module name
-- and type constructor environment.
mClsEnv' = Map.map (buildTypeSchemes False (mkMIdent []) initTCEnv . setHidden') mClsEnv
mClsEnv' = Map.map (buildTypeSchemesNoExpand . setHidden') mClsEnv
canonClassMap' = canonClassMap cEnv
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment