-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.yaml
108 lines (103 loc) · 2.95 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
96
97
98
99
100
101
102
103
104
105
106
107
108
# Hpack is an alternative format for Haskell projects.
# Please see more info about it: https://github.com/sol/hpack.
name: breadu
version: 0.3.3
synopsis: Bread Unit calculator
description: Web-based bread unit calculator for diabetics.
maintainer: Denis Shevchenko <me@dshevchenko.biz>
github: denisshevchenko/breadu.info
license: MIT
category: Web
extra-source-files:
- CHANGELOG.md
- README.md
# Common dependencies for all.
dependencies:
- base < 5.0
library:
source-dirs: src/lib
# This is an "opened" modules of a library.
# It means we can import these (and only these) modules in other libraries/programs.
exposed-modules:
- BreadU
# Versions of these packages are defined by Haskell LTS,
# please see value of 'resolver' field in 'stack.yaml'.
# You can check packages' versions at https://www.stackage.org/VALUE_OF_RESOLVER.
# Good practice - keep this list in alphabetical order.
dependencies:
- aeson
- blaze-html
- blaze-markup
- bytestring
- cassava
- clay
- directory
- double-conversion
- extra
- filepath
- hasmin
- hjsmin
- http-api-data
- http-types
- random
- servant
- servant-blaze
- servant-server
- split
- string-qq
- text
- text-show
- transformers
- unordered-containers
- vector
- wai
- warp
# GHC extensions that will be active in all modules by default.
default-extensions:
- RecordWildCards
- OverloadedStrings
- ViewPatterns
- MultiWayIf
ghc-options: -Wall -Werror -Wno-orphans -O
executables:
# BreadU server.
breadu-exe:
main: Main.hs
source-dirs: src/app
dependencies:
- breadu
- directory
- extra
- optparse-simple
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Werror -O
# BreadU server updater (using during CI).
update-breadu-server:
main: Main.hs
source-dirs: src/update
dependencies:
- filepath
- shell-conduit
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Werror -O
# Test suite. It will be run via 'stack test' command.
tests:
spec:
main: Spec.hs
source-dirs:
- test
- src/lib
dependencies:
- aeson
- blaze-markup
- breadu
- double-conversion
- hspec
- http-api-data
- text
- text-show
- unordered-containers
- vector
# GHC extensions that will be active in all modules by default.
default-extensions:
- RecordWildCards
- OverloadedStrings
- ViewPatterns