[commit: ghc] wip/nfs-locking: Add directions to Package submodules. (eeea3ed)

git at git.haskell.org git at git.haskell.org
Thu Oct 26 23:18:36 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/eeea3ed76e1886c34234a4efde6f3c6dc296c2d4/ghc

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

commit eeea3ed76e1886c34234a4efde6f3c6dc296c2d4
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Mon Jan 5 00:57:26 2015 +0000

    Add directions to Package submodules.


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

eeea3ed76e1886c34234a4efde6f3c6dc296c2d4
 src/Package.hs | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/Package.hs b/src/Package.hs
index ce7a8d5..ea7aae4 100644
--- a/src/Package.hs
+++ b/src/Package.hs
@@ -1,16 +1,15 @@
-{-# LANGUAGE NoImplicitPrelude #-}
-module Package (
-    packageRules
-    ) where
+module Package (packageRules) where
 
 import Package.Base
 import Package.Data
 import Package.Dependencies
 
 -- These are the packages we build
+-- See Package.Base for definitions of basic types
 packages :: [Package]
 packages = [libraryPackage "deepseq" Stage1 defaultSettings]
 
+-- Rule buildXY is defined in module X.Y
 buildPackage :: Package -> TodoItem -> Rules ()
 buildPackage pkg todoItem = do
     buildPackageData         pkg todoItem
@@ -18,8 +17,7 @@ buildPackage pkg todoItem = do
 
 packageRules :: Rules ()
 packageRules = do
-
-    want ["libraries/deepseq/dist-install/build/deepseq.m"]
+    want ["libraries/deepseq/dist-install/build/deepseq.m"] -- TODO: control targets from commang line arguments
     forM_ packages $ \pkg -> do
         forM_ (pkgTodo pkg) $ \todoItem -> do
             buildPackage pkg todoItem



More information about the ghc-commits mailing list