ef90c749c18a8201ecde28b724ae2ade0cfd2f56
[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.Paths
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                        , Rules
54                        , Rules.BinaryDist
55                        , Rules.Clean
56                        , Rules.Compile
57                        , Rules.Configure
58                        , Rules.PackageData
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.Packages.Rts
98                        , Settings.Warnings
99                        , Stage
100                        , Target
101                        , UserSettings
102                        , Utilities
103                        , Way
104                        , Way.Type
105     default-language:    Haskell2010
106     default-extensions:  DeriveFunctor
107                        , DeriveGeneric
108                        , FlexibleInstances
109                        , GeneralizedNewtypeDeriving
110                        , LambdaCase
111                        , RecordWildCards
112                        , ScopedTypeVariables
113                        , TupleSections
114     other-extensions:    MultiParamTypeClasses
115                        , TypeFamilies
116     build-depends:       base                 >= 4.8     && < 5
117                        , Cabal                >= 2.3     && < 2.4
118                        , containers           == 0.5.*
119                        , directory            >= 1.2     && < 1.4
120                        , extra                >= 1.4.7
121                        , mtl                  == 2.2.*
122                        , parsec               >= 3.1     && < 3.2
123                        , QuickCheck           >= 2.6     && < 2.11
124                        , shake                >= 0.16.1
125                        , transformers         >= 0.4     && < 0.6
126                        , unordered-containers >= 0.2.1   && < 0.3
127     build-tools:         alex  >= 3.1
128                        , happy >= 1.19.4
129     ghc-options:       -Wall
130                        -Wincomplete-record-updates
131                        -Wredundant-constraints
132                        -fno-warn-name-shadowing
133                        -rtsopts
134                        -- * -I0: Disable idle GC to avoid redundant GCs while
135                        --        waiting for external processes
136                        -- * -qg: Don't use parallel GC as the synchronization
137                        --        time tends to eat any benefit.
138                        "-with-rtsopts=-I0 -qg"
139                        -threaded