Commit 03f89a63 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Rename module Predicates to Predicate

parent 12dc4c5b
......@@ -36,7 +36,7 @@ executable hadrian
, Oracles.PackageDeps
, Oracles.WindowsPath
, Package
, Predicates
, Predicate
, Rules
, Rules.Actions
, Rules.Cabal
......
{-# LANGUAGE LambdaCase, FlexibleInstances #-}
-- | Convenient predicates
module Predicates (
module Predicate (
module Expression,
stage, stage0, stage1, stage2, notStage0,
package, notPackage, builder, input, output, way
......
module Settings.Builders.Alex (alexBuilderArgs) where
import Predicates
import Predicate
alexBuilderArgs :: Args
alexBuilderArgs = builder Alex ? mconcat [ arg "-g"
......
......@@ -3,7 +3,7 @@ module Settings.Builders.Ar (arBuilderArgs, arCmd, chunksOfSize) where
import Base
import Oracles.Config.Flag
import Oracles.Config.Setting
import Predicates
import Predicate
-- | Default arguments for 'Ar' builder.
arBuilderArgs :: Args
......
......@@ -3,7 +3,7 @@ module Settings.Builders.Cc (ccBuilderArgs) where
import Base
import Oracles.Config.Setting
import Oracles.PackageData
import Predicates
import Predicate
import Settings
import Settings.Builders.Common
......
......@@ -2,7 +2,7 @@ module Settings.Builders.Configure (configureBuilderArgs) where
import Base
import Oracles.Config.Setting
import Predicates
import Predicate
import Settings
configureBuilderArgs :: Args
......
......@@ -3,7 +3,7 @@ module Settings.Builders.DeriveConstants (deriveConstantsBuilderArgs) where
import Base
import Oracles.Config.Flag
import Oracles.Config.Setting
import Predicates
import Predicate
import Settings.Builders.Common
-- TODO: do we need to support `includes_CC_OPTS += -DDYNAMIC_BY_DEFAULT`?
......
module Settings.Builders.GenApply (genApplyBuilderArgs) where
import Predicates
import Predicate
-- Stdin/stdout are handled in a special way. See Rules/Actions.hs.
-- TODO: Dead code? ifeq "$(GhcUnregisterised)" "YES" GENAPPLY_OPTS = -u
......
module Settings.Builders.GenPrimopCode (genPrimopCodeBuilderArgs) where
import Predicates
import Predicate
-- Stdin/stdout are handled in a special way. See Rules/Actions.hs.
genPrimopCodeBuilderArgs :: Args
......
......@@ -5,7 +5,7 @@ import GHC
import Oracles.Config.Flag
import Oracles.Config.Setting
import Oracles.PackageData
import Predicates hiding (way, stage)
import Predicate hiding (way, stage)
import Settings
import Settings.Builders.Common
import Settings.Builders.GhcCabal
......
......@@ -9,7 +9,7 @@ import Builder
import GHC
import Oracles.Config.Flag
import Oracles.Config.Setting
import Predicates hiding (stage)
import Predicate hiding (stage)
import Settings
import Settings.Builders.Common
......
......@@ -2,7 +2,7 @@ module Settings.Builders.GhcPkg (ghcPkgBuilderArgs) where
import Base
import Builder
import Predicates
import Predicate
import Settings
import Settings.Builders.GhcCabal
......
......@@ -4,7 +4,7 @@ import Base
import GHC
import Oracles.PackageData
import Package
import Predicates
import Predicate
import Settings
import Settings.Builders.Ghc
......
module Settings.Builders.Happy (happyBuilderArgs) where
import Predicates
import Predicate
happyBuilderArgs :: Args
happyBuilderArgs = builder Happy ? mconcat [ arg "-agc"
......
......@@ -2,7 +2,7 @@ module Settings.Builders.HsCpp (hsCppBuilderArgs) where
import GHC
import Oracles.Config.Setting
import Predicates
import Predicate
import Settings.Builders.GhcCabal
import Settings.Paths
......
......@@ -4,7 +4,7 @@ import Base
import Oracles.Config.Flag
import Oracles.Config.Setting
import Oracles.PackageData
import Predicates
import Predicate
import Settings
import Settings.Builders.Common
......
module Settings.Builders.Ld (ldBuilderArgs) where
import Oracles.Config.Setting
import Predicates
import Predicate
ldBuilderArgs :: Args
ldBuilderArgs = builder Ld ? do
......
module Settings.Builders.Make (makeBuilderArgs) where
import Predicates
import Predicate
import Settings
makeBuilderArgs :: Args
......
module Settings.Builders.Tar (tarBuilderArgs) where
import Base
import Predicates
import Predicate
tarBuilderArgs :: Args
tarBuilderArgs = builder Tar ? do
......
......@@ -3,7 +3,7 @@ module Settings.Default (defaultSplitObjects) where
import Base
import GHC
import Oracles.Config.Flag
import Predicates
import Predicate
defaultSplitObjects :: Predicate
defaultSplitObjects = do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment