Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,261
Issues
4,261
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
394
Merge Requests
394
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
bd13338d
Commit
bd13338d
authored
Dec 15, 2011
by
dimitris
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exposing a useful assertion which was hidden inside a lazyness cloud.
parent
dff852b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
compiler/typecheck/TcInteract.lhs
compiler/typecheck/TcInteract.lhs
+9
-6
No files found.
compiler/typecheck/TcInteract.lhs
View file @
bd13338d
...
...
@@ -746,9 +746,9 @@ doInteractWithInert
-- situation for these and even if we did we'd have to be very careful to only
-- create Derived's and not Wanteds.
else let fd_eqns = improveFromAnother inert_pred_loc work_item_pred_loc
wloc =
get_workitem_wloc fl2
in rewriteWithFunDeps fd_eqns tys2 wloc
else
do {
let fd_eqns = improveFromAnother inert_pred_loc work_item_pred_loc
; wloc <-
get_workitem_wloc fl2
; rewriteWithFunDeps fd_eqns tys2 wloc }
-- See Note [Efficient Orientation], [When improvement happens]
; case any_fundeps of
...
...
@@ -764,9 +764,12 @@ doInteractWithInert
-> do { emitFDWorkAsDerived fd_work (cc_depth workItem)
; irKeepGoing "Cls/Cls (new fundeps)" } -- Just keep going without droping the inert
}
where get_workitem_wloc (Wanted wl) = wl
get_workitem_wloc (Derived wl) = wl
get_workitem_wloc (Given {}) = panic "Unexpected given!"
where get_workitem_wloc (Wanted wl) = return wl
get_workitem_wloc (Derived wl) = return wl
get_workitem_wloc (Given {}) = pprPanic "Unexpected given workitem!" $
vcat [ text "Work item =" <+> ppr workItem
, text "Inert item=" <+> ppr inertItem
]
-- Two pieces of irreducible evidence: if their types are *exactly identical* we can
...
...
dimitris
@trac-dimitris
mentioned in issue
#5684 (closed)
·
Dec 06, 2011
mentioned in issue
#5684 (closed)
mentioned in issue #5684
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment