projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e2b5796
)
Use the correct flag for controlling scoped type variables in an instance decl
author
simonpj@microsoft.com
<unknown>
Thu, 21 Jun 2007 14:11:14 +0000
(14:11 +0000)
committer
simonpj@microsoft.com
<unknown>
Thu, 21 Jun 2007 14:11:14 +0000
(14:11 +0000)
compiler/rename/RnSource.lhs
patch
|
blob
|
history
diff --git
a/compiler/rename/RnSource.lhs
b/compiler/rename/RnSource.lhs
index
71415fa
..
028970c
100644
(file)
--- a/
compiler/rename/RnSource.lhs
+++ b/
compiler/rename/RnSource.lhs
@@
-378,11
+378,11
@@
type variable environment iff -fglasgow-exts
\begin{code}
extendTyVarEnvForMethodBinds tyvars thing_inside
\begin{code}
extendTyVarEnvForMethodBinds tyvars thing_inside
- = doptM Opt_GlasgowExts `thenM` \ opt_GlasgowExts ->
- if opt_GlasgowExts then
- extendTyVarEnvFVRn (map hsLTyVarName tyvars) thing_inside
- else
- thing_inside
+ = do { scoped_tvs <- doptM Opt_ScopedTypeVariables
+ ; if scoped_tvs then
+ extendTyVarEnvFVRn (map hsLTyVarName tyvars) thing_inside
+ else
+ thing_inside }
\end{code}
%*********************************************************
\end{code}
%*********************************************************