Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
curry-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Finn Teegen
curry-frontend
Commits
a1c3d409
Commit
a1c3d409
authored
11 years ago
by
Matthias Böhm
Browse files
Options
Downloads
Patches
Plain Diff
using buildTypeSchemes*NoExpand* in Imports instead of buildTypeSchemes
parent
72cf0de9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Checks/TypeClassesCheck.hs
+1
-1
1 addition, 1 deletion
src/Checks/TypeClassesCheck.hs
src/Imports.hs
+2
-4
2 additions, 4 deletions
src/Imports.hs
with
3 additions
and
5 deletions
src/Checks/TypeClassesCheck.hs
+
1
−
1
View file @
a1c3d409
...
...
@@ -22,7 +22,7 @@
type signatures.
-}
module
Checks.TypeClassesCheck
(
buildTypeSchemes
,
typeClassesCheck
)
where
module
Checks.TypeClassesCheck
(
buildTypeSchemes
NoExpand
,
typeClassesCheck
)
where
import
Curry.Syntax.Type
as
ST
hiding
(
IDecl
)
import
Env.ClassEnv
...
...
This diff is collapsed.
Click to expand it.
src/Imports.hs
+
2
−
4
View file @
a1c3d409
...
...
@@ -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
(
buildTypeSchemes
NoExpand
)
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment