aboutsummaryrefslogtreecommitdiff
path: root/hsm-battery/hsm-battery.cabal
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2025-12-13 22:20:41 +0100
committerPaul Oliver <contact@pauloliver.dev>2025-12-13 22:20:41 +0100
commit10078d83ce910ddfee311964766c5042c38d3763 (patch)
tree0ee519efa9050c9c5731729be72b94bb529bb3af /hsm-battery/hsm-battery.cabal
parent459d2c5630e1296807bbf23fd4360fb4d4f5bbe7 (diff)
Adds battery monitoring service via INA226/I2Cbattery_monitoring
Diffstat (limited to 'hsm-battery/hsm-battery.cabal')
-rw-r--r--hsm-battery/hsm-battery.cabal49
1 files changed, 49 insertions, 0 deletions
diff --git a/hsm-battery/hsm-battery.cabal b/hsm-battery/hsm-battery.cabal
new file mode 100644
index 0000000..3614868
--- /dev/null
+++ b/hsm-battery/hsm-battery.cabal
@@ -0,0 +1,49 @@
+cabal-version: 3.8
+author: Paul Oliver <contact@pauloliver.dev>
+name: hsm-battery
+version: 0.1.0.0
+
+library
+ build-depends:
+ , base
+ , c-storable-deriving
+ , effectful-core
+ , effectful-plugin
+ , hsm-core
+ , hsm-log
+ , unix
+ , vector
+
+ default-language: GHC2024
+ exposed-modules: Hsm.Battery
+ ghc-options:
+ -O2 -Wall -Werror -Wno-star-is-type -Wunused-packages
+ -fplugin=Effectful.Plugin
+
+ other-modules: Hsm.Battery.FFI
+
+executable test-battery
+ build-depends:
+ , base
+ , c-storable-deriving
+ , effectful-core
+ , effectful-plugin
+ , hsm-battery
+ , hsm-core
+ , hsm-log
+ , optparse-applicative
+ , unix
+ , vector
+
+ default-language: GHC2024
+ ghc-options:
+ -O2 -Wall -Werror -Wno-star-is-type -Wunused-packages
+ -Wno-unused-imports -fplugin=Effectful.Plugin
+
+ if !arch(x86_64)
+ ghc-options: -optl=-mno-fix-cortex-a53-835769
+
+ main-is: Test/Battery.hs
+ other-modules:
+ Hsm.Battery
+ Hsm.Battery.FFI