diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2025-12-13 22:20:41 +0100 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2025-12-13 22:20:41 +0100 |
| commit | 10078d83ce910ddfee311964766c5042c38d3763 (patch) | |
| tree | 0ee519efa9050c9c5731729be72b94bb529bb3af /hsm-core/Hsm/Core/Show.hs | |
| parent | 459d2c5630e1296807bbf23fd4360fb4d4f5bbe7 (diff) | |
Adds battery monitoring service via INA226/I2Cbattery_monitoring
Diffstat (limited to 'hsm-core/Hsm/Core/Show.hs')
| -rw-r--r-- | hsm-core/Hsm/Core/Show.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hsm-core/Hsm/Core/Show.hs b/hsm-core/Hsm/Core/Show.hs new file mode 100644 index 0000000..601ea03 --- /dev/null +++ b/hsm-core/Hsm/Core/Show.hs @@ -0,0 +1,9 @@ +-- Defines some convenience printing functions +module Hsm.Core.Show + ( showHex + ) where + +import Numeric qualified as N (showHex) + +showHex :: Integral a => a -> String +showHex v = "0x" <> N.showHex v "" |
