summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonpj@microsoft.com <unknown>2007-06-21 14:11:14 +0000
committersimonpj@microsoft.com <unknown>2007-06-21 14:11:14 +0000
commitf84fa8a30ce2ac0c5aab424fce1234ef4169f445 (patch)
tree0dff258f7c31ad4db3a764dd5c366a95dd56f58a
parente2b5796d58ffce3f62f71439df51932679ffb16c (diff)
downloadhaskell-f84fa8a30ce2ac0c5aab424fce1234ef4169f445.tar.gz
Use the correct flag for controlling scoped type variables in an instance decl
-rw-r--r--compiler/rename/RnSource.lhs10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rename/RnSource.lhs b/compiler/rename/RnSource.lhs
index 71415faefc..028970cfc1 100644
--- 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
- = 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}
%*********************************************************