-
Notifications
You must be signed in to change notification settings - Fork 0
/
automation-service.cabal
153 lines (144 loc) · 3.98 KB
/
automation-service.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
145
146
147
148
149
150
151
152
153
cabal-version: 3.4
name: automation-service
-- The package version.
-- See the Haskell package versioning policy (PVP) for standards
-- guiding when and how versions should be incremented.
-- https://pvp.haskell.org
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 0.1.0.0
license: MIT
license-file: LICENSE
author: Dave Della Costa
maintainer: [email protected]
-- A copyright notice.
-- copyright:
category: Home Automation
build-type: Simple
extra-doc-files: CHANGELOG.md
common shared
ghc-options: -Wall
default-language: GHC2021
build-depends:
aeson ^>= 2.1.2.1
, astro ^>= 0.4.3.0
, base ^>= 4.16.3.0
, bytestring ^>= 0.11.3.1
, connection ^>= 0.3.1
, containers ^>= 0.6.5.1
, cron ^>= 0.7.0
, dhall ^>= 1.41.1
, fast-logger ^>= 3.2.2
, hashable ^>= 1.4.2.0
, hslua ^>= 2.3.0
, hslua-marshalling ^>= 2.3.0
, hslua-packaging ^>= 2.3.0
, http-client ^>= 0.7.13.1
, http-client-tls ^>= 0.3.6.1
, lens ^>= 5.2.3
, lens-aeson ^>= 1.2.2
, mtl ^>= 2.2.2
, net-mqtt ^>= 0.8.2.1
, network-uri ^>= 2.6.4.1
, pretty-simple
, random ^>= 1.2.1.1
, retry ^>= 0.9.3.1
, safe ^>= 0.3.19
, scotty ^>= 0.12.1
, sqlite-simple ^>= 0.4.18.2
-- had to downgrade from 2.0.2 because of other bumped
-- dependencies?
, text ^>= 1.2.5.0
, time ^>= 1.11.1.1
-- v1.6.0 disables SSL3
, tls ^>= 1.6.0
, transformers ^>= 0.5.6.2
, tz ^>= 0.1.3.6
, tzdata ^>= 0.2.20230322.0
, unliftio ^>= 0.2.23.0
, unliftio-core ^>= 0.2.1.0
, unordered-containers ^>= 0.2.19.1
, uuid ^>= 1.3.15
, vector ^>= 0.13.0.0
, wai ^>= 3.2.3
, wai-middleware-static ^>= 0.9.2
, wai-websockets ^>= 3.0.1.2
, warp ^>= 3.3.23
, websockets ^>= 0.12.7.3
, x509-store ^>= 1.6.9
default-extensions:
DeriveGeneric
, FunctionalDependencies
, LambdaCase
, OverloadedStrings
, StrictData
, TupleSections
library
import: shared
hs-source-dirs: src
exposed-modules:
Service.App
, Service.App.Logger
, Service.Automation
, Service.AutomationName
, Service.Automations
, Service.Automations.Gold
, Service.Automations.HTTP
, Service.Automations.HTTPDefault
, Service.Automations.LuaScript
, Service.Automations.StateManager
, Service.Daemon
, Service.Device
, Service.Env
, Service.Env.Config
, Service.Group
, Service.MQTT.Class
, Service.MQTT.Client
, Service.MQTT.Messages.Daemon
, Service.MQTT.Messages.Lighting
, Service.MQTT.Status
, Service.MQTT.Topic
, Service.MQTT.Zigbee2MQTT
, Service.StateStore
, Service.TimeHelpers
executable automation-service
import: shared
main-is: Main.hs
hs-source-dirs: app
build-depends: automation-service
ghc-options:
-threaded
-eventlog
-rtsopts
"-with-rtsopts=-N -T"
-Wall
test-suite automation-service-tests
import: shared
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
-- I added other-modules to get rid of warnings when running cabal
-- test. The absence of other-modules doesn't seem to prevent it
-- from running successfully otherwise. Is other-modules really
-- necessary?
other-modules:
Test.Helpers
, Test.Integration.Service.Daemon
, Test.Integration.Service.DaemonTestHelpers
, Test.Unit.Service.Device
, Test.Unit.Service.Group
, Test.Unit.Service.MQTT.Messages.Daemon
, Test.Unit.Service.MQTT.Status
, Test.Unit.Service.TimeHelpers
build-depends:
automation-service
, hspec ^>= 2.10.10
, QuickCheck ^>= 2.14.2
, tasty ^>= 1.4.2.3
, tasty-hspec ^>= 1.2.0.1
ghc-options:
-threaded
-rtsopts
"-with-rtsopts=-N -T"
-Wall