469bc67eb6966807e5c057a549b64b42ae630754
[hadrian.git] / hadrian.cabal
1 name:                hadrian
2 version:             0.1.0.0
3 synopsis:            GHC build system
4 license:             BSD3
5 license-file:        LICENSE
6 author:              Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
7 maintainer:          Andrey Mokhov <andrey.mokhov@gmail.com>, github: @snowleopard
8 copyright:           Andrey Mokhov 2014-2017
9 category:            Development
10 build-type:          Simple
11 cabal-version:       >=1.10
12
13 source-repository head
14     type:     git
15     location: https://github.com/snowleopard/hadrian
16
17 executable hadrian
18     main-is:             Main.hs
19     hs-source-dirs:      .
20                        , src
21     other-modules:       Base
22                        , Builder
23                        , CommandLine
24                        , Context
25                        , Context.Path
26                        , Context.Type
27                        , Environment
28                        , Expression
29                        , Expression.Type
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                        , Oracles.Flag
51                        , Oracles.Setting
52                        , Oracles.ModuleFiles
53                        , Oracles.TestSettings
54                        , Rules
55                        , Rules.BinaryDist
56                        , Rules.Clean
57                        , Rules.Compile
58                        , Rules.Configure
59                        , Rules.Dependencies
60                        , Rules.Documentation
61                        , Rules.Generate
62                        , Rules.Gmp
63                        , Rules.Libffi
64                        , Rules.Library
65                        , Rules.Nofib
66                        , Rules.Program
67                        , Rules.Register
68                        , Rules.Selftest
69                        , Rules.SourceDist
70                        , Rules.Test
71                        , Settings
72                        , Settings.Builders.Alex
73                        , Settings.Builders.Common
74                        , Settings.Builders.Cc
75                        , Settings.Builders.Configure
76                        , Settings.Builders.DeriveConstants
77                        , Settings.Builders.GenPrimopCode
78                        , Settings.Builders.Ghc
79                        , Settings.Builders.GhcCabal
80                        , Settings.Builders.GhcPkg
81                        , Settings.Builders.Haddock
82                        , Settings.Builders.Happy
83                        , Settings.Builders.Hsc2Hs
84                        , Settings.Builders.HsCpp
85                        , Settings.Builders.Ld
86                        , Settings.Builders.Make
87                        , Settings.Builders.RunTest
88                        , Settings.Builders.Xelatex
89                        , Settings.Default
90                        , Settings.Flavours.Development
91                        , Settings.Flavours.Performance
92                        , Settings.Flavours.Profiled
93                        , Settings.Flavours.Quick
94                        , Settings.Flavours.QuickCross
95                        , Settings.Flavours.Quickest
96                        , Settings.Packages
97                        , Settings.Warnings
98                        , Stage
99                        , Target
100                        , UserSettings
101                        , Utilities
102                        , Way
103                        , Way.Type
104     default-language:    Haskell2010
105     default-extensions:  DeriveFunctor
106                        , DeriveGeneric
107                        , FlexibleInstances
108                        , GeneralizedNewtypeDeriving
109                        , LambdaCase
110                        , RecordWildCards
111                        , ScopedTypeVariables
112                        , TupleSections
113     other-extensions:    MultiParamTypeClasses
114                        , TypeFamilies
115     build-depends:       base                 >= 4.8     && < 5
116                        , Cabal                >= 2.3     && < 2.4
117                        , containers           == 0.5.*
118                        , directory            >= 1.2     && < 1.4
119                        , extra                >= 1.4.7
120                        , mtl                  == 2.2.*
121                        , parsec               >= 3.1     && < 3.2
122                        , QuickCheck           >= 2.6     && < 2.11
123                        , shake                >= 0.16.1
124                        , transformers         >= 0.4     && < 0.6
125                        , unordered-containers >= 0.2.1   && < 0.3
126     build-tools:         alex  >= 3.1
127                        , happy >= 1.19.4
128     ghc-options:       -Wall
129                        -Wincomplete-record-updates
130                        -Wredundant-constraints
131                        -fno-warn-name-shadowing
132                        -rtsopts
133                        -- * -I0: Disable idle GC to avoid redundant GCs while
134                        --        waiting for external processes
135                        -- * -qg: Don't use parallel GC as the synchronization
136                        --        time tends to eat any benefit.
137                        "-with-rtsopts=-I0 -qg"
138                        -threaded