Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
1ddce518
Commit
1ddce518
authored
Feb 11, 2011
by
simonpj@microsoft.com
Browse files
makeSolvedByInst is only called on wanteds
This patch just adds an assert error.
parent
1e8493b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/typecheck/TcSMonad.lhs
View file @
1ddce518
...
...
@@ -186,8 +186,10 @@ makeSolvedByInst :: CanonicalCt -> CanonicalCt
-- Wanted -> Given
-- Given, Derived -> no-op
makeSolvedByInst ct
| Wanted loc <- cc_flavor ct = ct { cc_flavor = mkGivenFlavor (Wanted loc) UnkSkol }
| otherwise = ct
| Wanted loc <- cc_flavor ct
= ct { cc_flavor = Given (setCtLocOrigin loc UnkSkol) }
| otherwise -- Only called on wanteds
= pprPanic "makeSolvedByInst" (ppr ct)
deCanonicalise :: CanonicalCt -> FlavoredEvVar
deCanonicalise ct = mkEvVarX (cc_id ct) (cc_flavor ct)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment