-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yaml
95 lines (85 loc) · 2.06 KB
/
package.yaml
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
name: sql2er
version: 0.1.0.1
github: "tusharad/sql2er"
license: MIT
author: "tushar"
maintainer: "tusharadhatrao@gmail.com"
copyright: "2024 tushar"
extra-source-files:
- README.md
- CHANGELOG.md
# Metadata used when publishing your package
synopsis: A CLI tool that converts Postgres SQL file to ER-digram.
category: CLI
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/tusharad/sql2er#readme>
dependencies:
- base >= 4.7 && < 5
- text
- megaparsec
- optparse-applicative
ghc-options:
- -Wall
- -Wcompat
- -Widentities
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
# - -Wmissing-export-lists
- -Wmissing-home-modules
- -Wpartial-fields
- -Wredundant-constraints
library:
source-dirs: src
default-extensions:
- ImportQualifiedPost
flags:
build-sql2er-wasm:
description: Build the sql2er WASM app
manual: true
default: false
executables:
sql2er-exe:
main: Main.hs
source-dirs: app
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- sql2er
- base64
- bytestring
- req
sql2er-wasm:
main: Worker.hs
source-dirs: wasm
ghc-options:
- -no-hs-main
- -optl-mexec-model=reactor
- "-optl-Wl,--export=hs_init,--export=hs_runWorker,--export=freeBuffer,--export=callocBuffer"
dependencies:
- sql2er
when:
- condition: flag(build-sql2er-wasm)
then:
buildable: true
else:
buildable: false
tests:
sql2er-test:
main: Spec.hs
source-dirs: test
default-extensions:
- ImportQualifiedPost
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- sql2er
- megaparsec
- text
- tasty
- tasty-hunit