Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/76dbf0ce3db55cd498836c4cd31559fea4aa7be2

>---------------------------------------------------------------

commit 76dbf0ce3db55cd498836c4cd31559fea4aa7be2
Author: Ian Lynagh <[email protected]>
Date:   Tue Jun 14 22:11:01 2011 +0100

    Deprecate the DatatypeContexts extension

>---------------------------------------------------------------

 compiler/main/DynFlags.hs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index b49b860..5ce56f5 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -1688,7 +1688,8 @@ xFlags = [
   ( "ExplicitForAll",                   Opt_ExplicitForAll, nop ),
   ( "AlternativeLayoutRule",            Opt_AlternativeLayoutRule, nop ),
   ( "AlternativeLayoutRuleTransitional",Opt_AlternativeLayoutRuleTransitional, 
nop ),
-  ( "DatatypeContexts",                 Opt_DatatypeContexts, nop ),
+  ( "DatatypeContexts",                 Opt_DatatypeContexts,
+    \ turn_on -> when turn_on $ deprecate "It was widely considered a 
misfeature, and has been removed from the Haskell language." ),
   ( "NondecreasingIndentation",         Opt_NondecreasingIndentation, nop ),
   ( "RelaxedLayout",                    Opt_RelaxedLayout, nop ),
   ( "MonoLocalBinds",                   Opt_MonoLocalBinds, nop ),



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to