-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetaxis.cabal
More file actions
109 lines (98 loc) · 2.18 KB
/
metaxis.cabal
File metadata and controls
109 lines (98 loc) · 2.18 KB
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
cabal-version: 2.2
name: metaxis
version: 0.1.0.0
-- synopsis:
-- description:
homepage: https://github.com/githubuser/metaxis#readme
license: BSD-3-Clause
license-file: LICENSE
author: Author name here
maintainer: example@example.com
copyright: 2025 Author name here
category: Web
build-type: Simple
extra-source-files: README.md
CHANGELOG.md
-- Backend selection
flag postgres
default: True
description: Enable PostgreSQL backend
flag sqlite
default: True
description: Enable SQLite backend
library
exposed-modules:
Metaxis.Class
, Metaxis.Runner
, Metaxis.Config
hs-source-dirs: src
default-language: Haskell2010
build-depends:
base >=4.7 && <5
, text
, bytestring
, filepath
, directory
, time
, ansi-terminal
, yaml
, aeson
if flag(postgres)
cpp-options: -DPOSTGRES_ENABLED
build-depends: postgresql-simple
other-modules: Metaxis.Postgres
if flag(sqlite)
cpp-options: -DSQLITE_ENABLED
build-depends: sqlite-simple
other-modules: Metaxis.Sqlite
executable metaxis
main-is: Main.hs
hs-source-dirs: src
default-language: Haskell2010
build-depends:
base
, metaxis
, optparse-applicative
, text
, filepath
, directory
, ansi-terminal
, yaml
, aeson
if flag(postgres)
cpp-options: -DPOSTGRES_ENABLED
build-depends: postgresql-simple
other-modules: Metaxis.Postgres
if flag(sqlite)
cpp-options: -DSQLITE_ENABLED
build-depends: sqlite-simple
other-modules: Metaxis.Sqlite
other-modules:
Metaxis.Class
, Metaxis.Runner
test-suite metaxis-tests
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs:
test
src
build-depends:
base >=4.14 && <5,
hspec >=2.7,
QuickCheck,
metaxis,
ansi-terminal,
directory,
filepath,
text,
sqlite-simple,
postgresql-simple,
yaml,
aeson
other-modules:
Metaxis.Class
, Metaxis.Runner
, Metaxis.Sqlite
, ConfigSpec
default-language: Haskell2010
ghc-options: -DSQLITE_ENABLED -DPOSTGRES_ENABLED