From 10078d83ce910ddfee311964766c5042c38d3763 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Sat, 13 Dec 2025 22:20:41 +0100 Subject: Adds battery monitoring service via INA226/I2C --- hsm-battery/hsm-battery.cabal | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 hsm-battery/hsm-battery.cabal (limited to 'hsm-battery/hsm-battery.cabal') 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 +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 -- cgit v1.2.1