<commit_before>{-# LANGUAGE NoImplicitPrelude #-}
module Package (
    packageRules
    ) where

import Package.Base
import Package.Data
import Package.Dependencies

-- These are the packages we build
packages :: [Package]
packages = [libraryPackage "deepseq" Stage1 defaultSettings]

buildPackage :: Package -> TodoItem -> Rules ()
buildPackage pkg todoItem = do
    buildPackageData         pkg todoItem
    buildPackageDependencies pkg todoItem

packageRules :: Rules ()
packageRules = do

    want ["libraries/deepseq/dist-install/build/deepseq.m"]
    forM_ packages $ \pkg -> do
        forM_ (pkgTodo pkg) $ \todoItem -> do
            buildPackage pkg todoItem<commit_msg>Add directions to Package submodules.<commit_after>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
    buildPackageDependencies pkg todoItem

packageRules :: Rules ()
packageRules = do
    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
{'fraction_non_alphanumeric': 0.08226567768037761, 'fraction_numerical': 0.0013486176668914363, 'mean_word_length': 3.5944272445820435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7411094', 'n_tokens_mistral': 410, 'n_tokens_neox': 394, 'n_words': 137}