Targets.hs 791 Bytes
Newer Older
1
module Targets (libraryPackages, libraryPackagesInStage) where
2
3
4
5
6
7

import Base

-- These are the packages we build:
-- TODO: this should eventually be removed and replaced by the top-level
-- target, i.e. GHC (and perhaps, something else)
8
libraryPackagesInStage :: Stage -> [String]
Andrey Mokhov's avatar
Andrey Mokhov committed
9
10
11
libraryPackagesInStage Stage0 =
    [ "bin-package-db"
    , "binary"
Andrey Mokhov's avatar
Andrey Mokhov committed
12
    , "Cabal/Cabal"
Andrey Mokhov's avatar
Andrey Mokhov committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    , "hoopl"
    , "hpc"
    , "transformers" ]
libraryPackagesInStage Stage1 =
    libraryPackagesInStage Stage0 ++
    [ "array"
    , "bytestring"
    , "containers"
    , "deepseq"
    , "directory"
    , "filepath"
    , "parallel"
    , "pretty"
    , "stm"
    , "template-haskell" ]
Andrey Mokhov's avatar
Andrey Mokhov committed
28

29
30
31
libraryPackagesInStage _ = []

libraryPackages :: [String]
32
libraryPackages = nub $ concatMap libraryPackagesInStage [Stage0 ..]