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