This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhellsmack.cabal
144 lines (132 loc) · 4.21 KB
/
hellsmack.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
cabal-version: 3.0
name: hellsmack
version: 0.1.2.6
homepage: https://github.com/amesgen/hellsmack
bug-reports: https://github.com/amesgen/hellsmack/issues
license: CC0-1.0
license-file: LICENSE
extra-source-files: README.md
author: amesgen
maintainer: [email protected]
source-repository head
location: https://github.com/amesgen/hellsmack
type: git
common commons
default-extensions: AllowAmbiguousTypes ApplicativeDo BangPatterns BinaryLiterals BlockArguments ConstraintKinds DataKinds DefaultSignatures DeriveAnyClass DeriveFoldable DeriveFunctor DeriveGeneric DeriveLift DeriveTraversable DerivingStrategies DerivingVia DuplicateRecordFields EmptyCase ExistentialQuantification FlexibleContexts FlexibleInstances FunctionalDependencies GADTs GeneralizedNewtypeDeriving ImportQualifiedPost InstanceSigs KindSignatures LambdaCase LiberalTypeSynonyms MultiParamTypeClasses MultiWayIf NamedFieldPuns NoStarIsType OverloadedLabels OverloadedStrings PackageImports PatternSynonyms PolyKinds QuantifiedConstraints QuasiQuotes RankNTypes RecordWildCards RoleAnnotations ScopedTypeVariables StandaloneDeriving StandaloneKindSignatures StrictData TemplateHaskell TupleSections TypeApplications TypeFamilies TypeFamilyDependencies TypeOperators UnliftedNewtypes ViewPatterns
ghc-options: -Wall -Werror -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -Wmissing-deriving-strategies -Wunused-packages -Wwarn=unused-packages -fhide-source-paths -fno-warn-name-shadowing
default-language: Haskell2010
common base-no-prelude
build-depends: base >= 4.14
mixins: base hiding (Prelude)
library
import: commons, base-no-prelude
ghc-options: -Wmissing-export-lists
build-depends:
relude >= 1.0
, text >= 1.2
, split >= 0.2
, these >= 1.1
, semialign >= 1.2
, transformers >= 0.5
, random >= 1.2
, filepath >= 1.4
, path >= 0.8
, path-io >= 1.6
, temporary >= 1.3
, http-types >= 0.12
, http-client >= 0.7
, network-uri >= 2.6
, aeson >= 2.0
, deriving-aeson >= 0.2.7
, lens-aeson >= 1.2
, time >= 1.9
, yasi >= 0.2
, text-display >= 0.0
, binary >= 0.8
, exceptions >= 0.10
, unliftio >= 0.2
, conduit >= 1.3
, conduit-extra >= 1.3
, binary-conduit >= 1.3
, broadcast-chan-conduit >= 0.2
, lens >= 5.1
, generic-lens >= 2.0
, pcre2 >= 1.1
, cryptohash-sha1 >= 0.11
, base16 >= 0.3
, zip >= 1.6
, ansi-terminal >= 0.10
, colourista >= 0.1
, table-layout >= 0.9
, with-utf8 >= 1.0
, semigroups >= 0.19
, optparse-applicative >= 0.16
, th-env >= 0.1
if os(windows)
build-depends: http-client-tls >= 0.3
cpp-options: -DUSE_HASKELL_TLS
else
build-depends: http-client-openssl >= 0.3.3
exposed-modules:
Prelude
HellSmack.Logging
HellSmack.Vanilla
HellSmack.ModLoader
HellSmack.ModLoader.Forge
HellSmack.ModLoader.Fabric
HellSmack.Curse
HellSmack.Curse.API
HellSmack.Yggdrasil
HellSmack.Yggdrasil.API
HellSmack.Util
HellSmack.Util.Aeson
HellSmack.Util.Download
HellSmack.Util.Exception
HellSmack.Util.Has
HellSmack.Util.IO
HellSmack.Util.Meta
HellSmack.Util.Minecraft
HellSmack.Util.Murmur
HellSmack.Util.Orphans
HellSmack.Util.Path
HellSmack.Util.Terminal
HellSmack.Http
Main
hs-source-dirs: src
if os(linux)
cpp-options: -DOS_LINUX
if os(darwin)
cpp-options: -DOS_OSX
if os(windows)
cpp-options: -DOS_WINDOWS
if arch(i386)
cpp-options: -DARCH_X86
if arch(x86_64)
cpp-options: -DARCH_X86_64
if arch(aarch64)
cpp-options: -DARCH_AARCH64
common exec
ghc-options:
-threaded -rtsopts
-- -qn2: lower CPU usage
"-with-rtsopts=-N -qn2"
build-depends: hellsmack
executable hellsmack
import: commons, exec
hs-source-dirs: app
main-is: Main.hs
test-suite tasty
import: commons, base-no-prelude, exec
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Driver.hs
build-depends:
tasty >= 1.4
, tasty-hunit >= 0.10
, relude
, path-io
, unliftio
other-modules:
HellSmack.Test.CurseTest
HellSmack.Test.VanillaTest
HellSmack.Test.YggdrasilTest