UserSettings.hs 778 Bytes
Newer Older
Andrey Mokhov's avatar
Andrey Mokhov committed
1
module UserSettings (
2
    userSettings, userPackages, userWays
Andrey Mokhov's avatar
Andrey Mokhov committed
3
4
5
6
    ) where

import Base hiding (arg, args, Args)
import Oracles.Builder
7
import Ways
8
import Targets
Andrey Mokhov's avatar
Andrey Mokhov committed
9
10
import Expression

11
-- No user-specific settings by default
Andrey Mokhov's avatar
Andrey Mokhov committed
12
userSettings :: Settings
13
14
15
16
17
18
19
20
21
22
23
userSettings = mempty

userPackages :: Packages
userPackages = mempty

userWays :: Ways
userWays = mempty

-- Examples:
userSettings' :: Settings
userSettings' = mconcat
Andrey Mokhov's avatar
Andrey Mokhov committed
24
25
    [ package compiler ? stage Stage0 ? append ["foo", "bar"]
    , builder (Ghc Stage0) ? remove ["-O2"]
26
    , builder GhcCabal ? removeSub "--configure-option=CFLAGS" ["-Werror"] ]
Andrey Mokhov's avatar
Andrey Mokhov committed
27

28
29
userPackages' :: Packages
userPackages' = mconcat
30
31
    [ stage Stage1 ? remove [cabal]
    ,                remove [compiler] ]
32
33
34

userWays' :: Ways
userWays' = remove [profiling]