Make RecordWildCards a default extension.
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Fri, 19 Feb 2016 00:00:14 +0000 (00:00 +0000)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Fri, 19 Feb 2016 00:00:14 +0000 (00:00 +0000)
See #207.

build.bat
build.sh
shaking-up-ghc.cabal
src/Rules/Actions.hs
src/Rules/Compile.hs
src/Rules/Data.hs
src/Rules/Dependencies.hs
src/Rules/Documentation.hs
src/Rules/Library.hs
src/Rules/Program.hs
src/Rules/Register.hs

index 10a6969..465d957 100644 (file)
--- a/build.bat
+++ b/build.bat
@@ -4,6 +4,7 @@
 @set ghcArgs=--make                   ^\r
              -Wall                    ^\r
              -fno-warn-name-shadowing ^\r
+             -XRecordWildCards        ^\r
              src/Main.hs              ^\r
              -isrc                    ^\r
              -rtsopts                 ^\r
index 77c9fa4..7c070e9 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -36,6 +36,7 @@ ghc                           \
     "$root/src/Main.hs"       \
     -Wall                     \
     -fno-warn-name-shadowing  \
+    -XRecordWildCards         \
     -i"$root/src"             \
     -rtsopts                  \
     -with-rtsopts=-I0         \
index 684e89e..fc0744d 100644 (file)
@@ -108,13 +108,13 @@ executable ghc-shake
                        , Way
 
     default-language:    Haskell2010
+    default-extensions:  RecordWildCards
     other-extensions:    DeriveDataTypeable
                        , DeriveGeneric
                        , FlexibleInstances
                        , GeneralizedNewtypeDeriving
                        , LambdaCase
                        , OverloadedStrings
-                       , RecordWildCards
                        , ScopedTypeVariables
     build-depends:       base >= 4.8 && < 5
                        , ansi-terminal        == 0.6.*
index 5f8f583..c69298e 100644 (file)
@@ -1,4 +1,3 @@
-{-# LANGUAGE RecordWildCards #-}
 module Rules.Actions (
     build, buildWithResources, copyFile, createDirectory, removeDirectory,
     copyDirectory, moveDirectory, applyPatch, fixFile, runConfigure, runMake,
index f62c644..c9a1bba 100644 (file)
@@ -1,4 +1,3 @@
-{-# LANGUAGE RecordWildCards #-}
 module Rules.Compile (compilePackage) where
 
 import Base
index f47e8d0..0e27699 100644 (file)
@@ -1,4 +1,3 @@
-{-# LANGUAGE RecordWildCards #-}
 module Rules.Data (buildPackageData) where
 
 import qualified System.Directory as IO
index 330c821..f2a2141 100644 (file)
@@ -1,4 +1,3 @@
-{-# LANGUAGE RecordWildCards #-}
 module Rules.Dependencies (buildPackageDependencies) where
 
 import Development.Shake.Util (parseMakefile)
index e3b0e7d..7e98e27 100644 (file)
@@ -1,4 +1,3 @@
-{-# LANGUAGE RecordWildCards #-}
 module Rules.Documentation (buildPackageDocumentation) where
 
 import Base
index c6d92a5..980139f 100644 (file)
@@ -1,4 +1,3 @@
-{-# LANGUAGE RecordWildCards #-}
 module Rules.Library (
     buildPackageLibrary, buildPackageGhciLibrary, cSources, hSources
     ) where
index 6eaa821..af6023d 100644 (file)
@@ -1,4 +1,3 @@
-{-# LANGUAGE RecordWildCards #-}
 module Rules.Program (buildProgram) where
 
 import Data.Char
index 85fac80..bddce8a 100644 (file)
@@ -1,4 +1,3 @@
-{-# LANGUAGE RecordWildCards #-}
 module Rules.Register (registerPackage) where
 
 import Base