[commit: ghc] wip/nfs-locking: Use qualified imports in Rules.hs for better readability. (56be38d)
git at git.haskell.org
git at git.haskell.org
Fri Oct 27 00:28:28 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/nfs-locking
Link : http://ghc.haskell.org/trac/ghc/changeset/56be38d48f28022d370edb1f7d3663630dde9c45/ghc
>---------------------------------------------------------------
commit 56be38d48f28022d370edb1f7d3663630dde9c45
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date: Thu May 5 00:16:54 2016 +0100
Use qualified imports in Rules.hs for better readability.
>---------------------------------------------------------------
56be38d48f28022d370edb1f7d3663630dde9c45
src/Rules.hs | 58 +++++++++++++++++++++++++++++-----------------------------
1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/src/Rules.hs b/src/Rules.hs
index 2f84917..e3caf6c 100644
--- a/src/Rules.hs
+++ b/src/Rules.hs
@@ -6,19 +6,19 @@ import Base
import Context
import Expression
import GHC
-import Rules.Compile
-import Rules.Data
-import Rules.Dependencies
-import Rules.Documentation
-import Rules.Generate
-import Rules.Cabal
-import Rules.Configure
-import Rules.Gmp
-import Rules.Libffi
-import Rules.Library
-import Rules.Perl
-import Rules.Program
-import Rules.Register
+import qualified Rules.Compile
+import qualified Rules.Data
+import qualified Rules.Dependencies
+import qualified Rules.Documentation
+import qualified Rules.Generate
+import qualified Rules.Cabal
+import qualified Rules.Configure
+import qualified Rules.Gmp
+import qualified Rules.Libffi
+import qualified Rules.Library
+import qualified Rules.Perl
+import qualified Rules.Program
+import qualified Rules.Register
import Settings
allStages :: [Stage]
@@ -66,25 +66,25 @@ packageRules = do
vanillaContexts = liftM2 vanillaContext allStages knownPackages
for_ contexts $ mconcat
- [ compilePackage readPackageDb
- , buildPackageLibrary ]
+ [ Rules.Compile.compilePackage readPackageDb
+ , Rules.Library.buildPackageLibrary ]
for_ vanillaContexts $ mconcat
- [ buildPackageData
- , buildPackageDependencies readPackageDb
- , buildPackageDocumentation
- , buildPackageGhciLibrary
- , generatePackageCode
- , buildProgram readPackageDb
- , registerPackage writePackageDb ]
+ [ Rules.Data.buildPackageData
+ , Rules.Dependencies.buildPackageDependencies readPackageDb
+ , Rules.Documentation.buildPackageDocumentation
+ , Rules.Library.buildPackageGhciLibrary
+ , Rules.Generate.generatePackageCode
+ , Rules.Program.buildProgram readPackageDb
+ , Rules.Register.registerPackage writePackageDb ]
buildRules :: Rules ()
buildRules = do
- cabalRules
- configureRules
- generateRules
- copyRules
- gmpRules
- libffiRules
- perlScriptRules
+ Rules.Cabal.cabalRules
+ Rules.Configure.configureRules
+ Rules.Generate.copyRules
+ Rules.Generate.generateRules
+ Rules.Gmp.gmpRules
+ Rules.Libffi.libffiRules
packageRules
+ Rules.Perl.perlScriptRules
More information about the ghc-commits
mailing list