Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
Finalise generation of build rules from contexts.
Browse files Browse the repository at this point in the history
See #207.
  • Loading branch information
snowleopard committed Feb 16, 2016
1 parent 98b1f8c commit f6a9d2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions src/Rules.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,9 @@ packageRules = do
[ buildPackageData
, buildPackageDependencies readPackageDb
, buildPackageDocumentation
, generatePackageCode ]

for_ allStages $ \stage ->
for_ knownPackages $ \package -> do
let context = vanillaContext stage package
buildProgram context
registerPackage writePackageDb context
, generatePackageCode
, buildProgram
, registerPackage writePackageDb ]

buildRules :: Rules ()
buildRules = do
Expand Down
1 change: 0 additions & 1 deletion src/Rules/Register.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Settings
import Settings.Packages.Rts
import Target

-- TODO: Use way from Context, #207
-- Build package-data.mk by using GhcCabal to process pkgCabal file
registerPackage :: [(Resource, Int)] -> Context -> Rules ()
registerPackage rs context @ (Context {..}) = do
Expand Down

0 comments on commit f6a9d2f

Please sign in to comment.