Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Kaznacheev
GHC
Commits
b383edf2
Commit
b383edf2
authored
23 years ago
by
Simon Peyton Jones
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2002-02-15 09:32:47 by simonpj]
Comments only
parent
87a229b8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/typecheck/TcSimplify.lhs
+6
-1
6 additions, 1 deletion
ghc/compiler/typecheck/TcSimplify.lhs
with
6 additions
and
1 deletion
ghc/compiler/typecheck/TcSimplify.lhs
+
6
−
1
View file @
b383edf2
...
@@ -670,9 +670,14 @@ tcSimplifyCheck
...
@@ -670,9 +670,14 @@ tcSimplifyCheck
-- tcSimplifyCheck is used when checking expression type signatures,
-- tcSimplifyCheck is used when checking expression type signatures,
-- class decls, instance decls etc.
-- class decls, instance decls etc.
-- Note that we psss isFree (not isFreeAndInheritable) to tcSimplCheck
--
-- NB: we psss isFree (not isFreeAndInheritable) to tcSimplCheck
-- It's important that we can float out non-inheritable predicates
-- It's important that we can float out non-inheritable predicates
-- Example: (?x :: Int) is ok!
-- Example: (?x :: Int) is ok!
--
-- NB: tcSimplifyCheck does not consult the
-- global type variables in the environment; so you don't
-- need to worry about setting them before calling tcSimplifyCheck
tcSimplifyCheck doc qtvs givens wanted_lie
tcSimplifyCheck doc qtvs givens wanted_lie
= tcSimplCheck doc get_qtvs
= tcSimplCheck doc get_qtvs
givens wanted_lie `thenTc` \ (qtvs', frees, binds) ->
givens wanted_lie `thenTc` \ (qtvs', frees, binds) ->
...
...
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