From 8392ba25da0acb27cd64bf0bb4e5fb5406de4222 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Fri, 4 Feb 2011 08:42:26 +0000 Subject: [PATCH] Add -XNondecreasingIndentation to -XHaskell98 for backwards compatibility. The final straw was when I learned today that Happy broke. --- compiler/main/DynFlags.hs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 4a3b8f1..9147a92 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -806,7 +806,14 @@ languageExtensions (Just Haskell98) = [Opt_ImplicitPrelude, Opt_MonomorphismRestriction, Opt_NPlusKPatterns, - Opt_DatatypeContexts] + Opt_DatatypeContexts, + Opt_NondecreasingIndentation + -- strictly speaking non-standard, but we always had this + -- on implicitly before the option was added in 7.1, and + -- turning it off breaks code, so we're keeping it on for + -- backwards compatibility. Cabal uses -XHaskell98 by + -- default unless you specify another language. + ] languageExtensions (Just Haskell2010) = [Opt_ImplicitPrelude, -- 1.7.10.4