#7349: -fth is deprecated without warning
------------------------------+---------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: patch
Priority: normal | Component: Compiler
Version: 7.6.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
Changes (by guest):
* status: new => patch
Comment:
Fix is a one-liner. Bug: The operator (>>) was used for the (->) r monad,
instead of DynP, and it ignored its left argument.
{{{
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 121c85f..138cb99 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -2372,7 +2372,7 @@ fFlags = [
fLangFlags :: [FlagSpec ExtensionFlag]
fLangFlags = [
( "th", Opt_TemplateHaskell,
- deprecatedForExtension "TemplateHaskell" >> checkTemplateHaskellOk ),
+ \x -> deprecatedForExtension "TemplateHaskell" x >>
checkTemplateHaskellOk x ),
( "fi", Opt_ForeignFunctionInterface,
deprecatedForExtension "ForeignFunctionInterface" ),
( "ffi", Opt_ForeignFunctionInterface,
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7349#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs