hadrian.cabal 5.9 KB
Newer Older
Andrey Mokhov's avatar
Andrey Mokhov committed
1
name:                hadrian
2
3
4
5
version:             0.1.0.0
synopsis:            GHC build system
license:             BSD3
license-file:        LICENSE
Andrey Mokhov's avatar
Andrey Mokhov committed
6
7
author:              Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
maintainer:          Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
8
copyright:           Andrey Mokhov 2014-2017
9
10
11
12
13
14
category:            Development
build-type:          Simple
cabal-version:       >=1.10

source-repository head
    type:     git
Andrey Mokhov's avatar
Andrey Mokhov committed
15
    location: https://github.com/snowleopard/hadrian
16

17
executable hadrian
18
    main-is:             Main.hs
kaiha's avatar
kaiha committed
19
20
    hs-source-dirs:      .
                       , src
21
22
    other-modules:       Base
                       , Builder
23
                       , CommandLine
24
                       , Context
25
                       , Context.Path
26
                       , Context.Type
27
                       , Environment
28
                       , Expression
29
                       , Expression.Type
Andrey Mokhov's avatar
Andrey Mokhov committed
30
                       , Flavour
31
                       , GHC
32
                       , GHC.Packages
33
                       , Hadrian.Builder
34
                       , Hadrian.Builder.Ar
35
                       , Hadrian.Builder.Sphinx
36
                       , Hadrian.Builder.Tar
37
                       , Hadrian.Expression
38
                       , Hadrian.Haskell.Cabal
39
                       , Hadrian.Haskell.Cabal.PackageData
40
                       , Hadrian.Haskell.Cabal.Parse
41
                       , Hadrian.Haskell.Cabal.Type
42
                       , Hadrian.Oracles.ArgsHash
43
                       , Hadrian.Oracles.DirectoryContents
44
                       , Hadrian.Oracles.Path
45
                       , Hadrian.Oracles.TextFile
46
                       , Hadrian.Package
47
                       , Hadrian.Package.Type
48
                       , Hadrian.Target
49
                       , Hadrian.Utilities
50
51
                       , Oracles.Flag
                       , Oracles.Setting
52
                       , Oracles.ModuleFiles
53
                       , Oracles.TestSettings
54
                       , Rules
55
                       , Rules.BinaryDist
Andrey Mokhov's avatar
Andrey Mokhov committed
56
                       , Rules.Clean
57
                       , Rules.Compile
58
                       , Rules.Configure
59
60
61
                       , Rules.Dependencies
                       , Rules.Documentation
                       , Rules.Generate
62
                       , Rules.Gmp
Andrey Mokhov's avatar
Andrey Mokhov committed
63
                       , Rules.Libffi
64
                       , Rules.Library
65
                       , Rules.Nofib
66
                       , Rules.Program
67
                       , Rules.Register
68
                       , Rules.Selftest
kaiha's avatar
kaiha committed
69
                       , Rules.SourceDist
70
                       , Rules.Test
71
72
                       , Settings
                       , Settings.Builders.Alex
Andrey Mokhov's avatar
Andrey Mokhov committed
73
                       , Settings.Builders.Common
Andrey Mokhov's avatar
Andrey Mokhov committed
74
                       , Settings.Builders.Cc
Andrey Mokhov's avatar
Andrey Mokhov committed
75
                       , Settings.Builders.Configure
76
                       , Settings.Builders.DeriveConstants
77
78
79
80
81
82
83
84
85
                       , Settings.Builders.GenPrimopCode
                       , Settings.Builders.Ghc
                       , Settings.Builders.GhcCabal
                       , Settings.Builders.GhcPkg
                       , Settings.Builders.Haddock
                       , Settings.Builders.Happy
                       , Settings.Builders.Hsc2Hs
                       , Settings.Builders.HsCpp
                       , Settings.Builders.Ld
Andrey Mokhov's avatar
Andrey Mokhov committed
86
                       , Settings.Builders.Make
87
                       , Settings.Builders.RunTest
88
                       , Settings.Builders.Xelatex
89
                       , Settings.Default
Andrey Mokhov's avatar
Andrey Mokhov committed
90
                       , Settings.Flavours.Development
Andrey Mokhov's avatar
Andrey Mokhov committed
91
92
                       , Settings.Flavours.Performance
                       , Settings.Flavours.Profiled
93
                       , Settings.Flavours.Quick
94
                       , Settings.Flavours.QuickCross
Andrey Mokhov's avatar
Andrey Mokhov committed
95
                       , Settings.Flavours.Quickest
96
                       , Settings.Packages
97
                       , Settings.Warnings
98
99
                       , Stage
                       , Target
100
                       , UserSettings
101
                       , Utilities
102
                       , Way
103
                       , Way.Type
104
    default-language:    Haskell2010
105
    default-extensions:  DeriveFunctor
106
                       , DeriveGeneric
107
                       , FlexibleInstances
108
109
                       , GeneralizedNewtypeDeriving
                       , LambdaCase
110
                       , RecordWildCards
111
                       , ScopedTypeVariables
112
113
                       , TupleSections
    other-extensions:    MultiParamTypeClasses
114
                       , TypeFamilies
115
    build-depends:       base                 >= 4.8     && < 5
Ben Gamari's avatar
Ben Gamari committed
116
                       , Cabal                >= 2.4     && < 2.5
117
                       , containers           == 0.5.*
118
                       , directory            >= 1.2     && < 1.4
Andrey Mokhov's avatar
Andrey Mokhov committed
119
                       , extra                >= 1.4.7
Andrey Mokhov's avatar
Andrey Mokhov committed
120
                       , mtl                  == 2.2.*
121
                       , parsec               >= 3.1     && < 3.2
122
                       , QuickCheck           >= 2.6     && < 2.11
Tao He's avatar
Tao He committed
123
                       , shake                >= 0.16.1
124
125
                       , transformers         >= 0.4     && < 0.6
                       , unordered-containers >= 0.2.1   && < 0.3
126
127
    build-tools:         alex  >= 3.1
                       , happy >= 1.19.4
Andrey Mokhov's avatar
Andrey Mokhov committed
128
129
130
131
132
    ghc-options:       -Wall
                       -Wincomplete-record-updates
                       -Wredundant-constraints
                       -fno-warn-name-shadowing
                       -rtsopts
Ben Gamari's avatar
Ben Gamari committed
133
134
135
136
137
                       -- * -I0: Disable idle GC to avoid redundant GCs while
                       --        waiting for external processes
                       -- * -qg: Don't use parallel GC as the synchronization
                       --        time tends to eat any benefit.
                       "-with-rtsopts=-I0 -qg"
Andrey Mokhov's avatar
Andrey Mokhov committed
138
                       -threaded