aboutsummaryrefslogtreecommitdiff
path: root/hsm-battery/hsm-battery.cabal
blob: 3614868bb274ca43543ddba2f877e4c467a23723 (plain)
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
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