summaryrefslogtreecommitdiff
path: root/compiler/codeGen/StgCmmMonad.hs
diff options
context:
space:
mode:
authorIavor S. Diatchki <iavor.diatchki@gmail.com>2011-12-29 16:45:30 -0800
committerIavor S. Diatchki <iavor.diatchki@gmail.com>2011-12-29 16:45:30 -0800
commit896d20fabdf0087e8dd33cc419a377b7a9adee88 (patch)
tree6acfc745bb5d75ccc921af6521e5294d2d69da3f /compiler/codeGen/StgCmmMonad.hs
parent42186dd64c22f23bbdb15a27e608cb52ba7d617f (diff)
parentb0c0205e3c0dfefc3ffbd49d22160ad5d624ee1f (diff)
downloadhaskell-896d20fabdf0087e8dd33cc419a377b7a9adee88.tar.gz
Merge branch 'master' into type-nats
Conflicts: compiler/typecheck/TcCanonical.lhs compiler/typecheck/TcSMonad.lhs
Diffstat (limited to 'compiler/codeGen/StgCmmMonad.hs')
-rw-r--r--compiler/codeGen/StgCmmMonad.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/codeGen/StgCmmMonad.hs b/compiler/codeGen/StgCmmMonad.hs
index cab0897fe8..71457c530c 100644
--- a/compiler/codeGen/StgCmmMonad.hs
+++ b/compiler/codeGen/StgCmmMonad.hs
@@ -379,8 +379,8 @@ newUnique = do
getInfoDown :: FCode CgInfoDownwards
getInfoDown = FCode $ \info_down state -> (info_down,state)
-getDynFlags :: FCode DynFlags
-getDynFlags = liftM cgd_dflags getInfoDown
+instance HasDynFlags FCode where
+ getDynFlags = liftM cgd_dflags getInfoDown
getThisPackage :: FCode PackageId
getThisPackage = liftM thisPackage getDynFlags