-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaffinity.cabal
62 lines (56 loc) · 1.78 KB
/
affinity.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
cabal-version: 2.4
name: affinity
version: 2.0
license-file: LICENSE
author: Nicola Bonelli
maintainer: [email protected]
category: Utils
build-type: Simple
flag StaticBuild {
Description: "Enable static build"
Default: False
}
common common-options
build-depends: base >= 4.16.0.0
ghc-options: -Wall
-Wcompat
-Widentities
-Wincomplete-uni-patterns
-Wincomplete-record-updates
if impl(ghc >= 8.0)
ghc-options: -Wredundant-constraints
if impl(ghc >= 8.2)
ghc-options: -fhide-source-paths
if impl(ghc >= 8.4)
ghc-options: -Wmissing-export-lists
-Wpartial-fields
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
default-language: Haskell2010
executable affinity
import: common-options
hs-source-dirs: src
main-is: Affinity.hs
other-modules: Paths_affinity
Proc
Mask
Utils
Options
build-depends: base >= 4.7,
mtl,
split,
ansi-terminal,
text,
regex-posix,
extra,
directory,
optparse-applicative
default-language: Haskell2010
if flag (StaticBuild) {
ghc-options: -O2 -Wall -static -threaded -optl-fuse-ld=bfd
cc-options: -static
ld-options: -static -pthread
}
else {
ghc-options: -O2 -Wall -threaded -funbox-strict-fields -fno-state-hack -rtsopts
}