X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcRnMonad.lhs;h=6d5d6d1a4cbf3f52e188e8dd612897bb4c799344;hb=18766724e350e926e85d10002ebf2a70d375f440;hp=d9c41c00b328be6c407745f97b36303aaaf9d9f4;hpb=1f4bc1f36380776c68431dbc3b5fa41dd6d2182e;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcRnMonad.lhs b/compiler/typecheck/TcRnMonad.lhs index d9c41c0..6d5d6d1 100644 --- a/compiler/typecheck/TcRnMonad.lhs +++ b/compiler/typecheck/TcRnMonad.lhs @@ -235,7 +235,7 @@ doptM flag = do { dflags <- getDOpts; return (dopt flag dflags) } -- XXX setOptM and unsetOptM operate on different types. One should be renamed. -setOptM :: LanguageFlag -> TcRnIf gbl lcl a -> TcRnIf gbl lcl a +setOptM :: ExtensionFlag -> TcRnIf gbl lcl a -> TcRnIf gbl lcl a setOptM flag = updEnv (\ env@(Env { env_top = top }) -> env { env_top = top { hsc_dflags = lopt_set_flattened (hsc_dflags top) flag}} )