Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alfredo Di Napoli
GHC
Commits
1f315e01
Commit
1f315e01
authored
Feb 14, 2002
by
simonpj
Browse files
[project @ 2002-02-14 14:01:40 by simonpj]
Do tcSub the right way round for pattern type signatures
parent
1a6810f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/typecheck/TcPat.lhs
View file @
1f315e01
...
...
@@ -463,7 +463,7 @@ tcSubPat does the work
tcSubPat :: TcSigmaType -> TcSigmaType -> TcM (PatCoFn, LIE)
tcSubPat sig_ty exp_ty
= tcSub
exp
_ty
sig
_ty `thenTc` \ (co_fn, lie) ->
= tcSub
sig
_ty
exp
_ty `thenTc` \ (co_fn, lie) ->
-- co_fn is a coercion on *expressions*, and we
-- need to make a coercion on *patterns*
if isIdCoercion co_fn then
...
...
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