From: Simon Marlow Date: Fri, 4 Feb 2011 08:42:26 +0000 (+0000) Subject: Add -XNondecreasingIndentation to -XHaskell98 for backwards compatibility. X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=8392ba25da0acb27cd64bf0bb4e5fb5406de4222 Add -XNondecreasingIndentation to -XHaskell98 for backwards compatibility. The final straw was when I learned today that Happy broke. --- 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,