Fix warnings (#547)
[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.Clean
55                        , Rules.Compile
56                        , Rules.Configure
57                        , Rules.PackageData
58                        , Rules.Dependencies
59                        , Rules.Documentation
60                        , Rules.Generate
61                        , Rules.Gmp
62                        , Rules.Libffi
63                        , Rules.Library
64                        , Rules.Program
65                        , Rules.Register
66                        , Rules.Selftest
67                        , Rules.SourceDist
68                        , Rules.Test
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
95                        , Settings.Packages.Rts
96                        , Settings.Warnings
97                        , Stage
98                        , Target
99                        , UserSettings
100                        , Utilities
101                        , Way
102                        , Way.Type
103     default-language:    Haskell2010
104     default-extensions:  DeriveFunctor
105                        , DeriveGeneric
106                        , FlexibleInstances
107                        , GeneralizedNewtypeDeriving
108                        , LambdaCase
109                        , RecordWildCards
110                        , ScopedTypeVariables
111                        , TupleSections
112     other-extensions:    MultiParamTypeClasses
113                        , TypeFamilies
114     build-depends:       base                 >= 4.8     && < 5
115                        , Cabal                >= 2.3     && < 2.4
116                        , containers           == 0.5.*
117                        , directory            >= 1.2     && < 1.4
118                        , extra                >= 1.4.7
119                        , mtl                  == 2.2.*
120                        , QuickCheck           >= 2.6     && < 2.11
121                        , shake                == 0.16.*
122                        , transformers         >= 0.4     && < 0.6
123                        , unordered-containers >= 0.2.1   && < 0.3
124     build-tools:         alex  >= 3.1
125                        , happy >= 1.19.4
126     ghc-options:       -Wall
127                        -Wincomplete-record-updates
128                        -Wredundant-constraints
129                        -fno-warn-name-shadowing
130                        -rtsopts
131                        -- * -I0: Disable idle GC to avoid redundant GCs while
132                        --        waiting for external processes
133                        -- * -qg: Don't use parallel GC as the synchronization
134                        --        time tends to eat any benefit.
135                        "-with-rtsopts=-I0 -qg"
136                        -threaded