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