aboutsummaryrefslogtreecommitdiff
path: root/hsm-status/Hsm
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2025-01-16 18:26:16 -0800
committerPaul Oliver <contact@pauloliver.dev>2025-01-17 19:16:43 -0800
commitdc6bf1472c930ff1448c419d3205148bce1b787e (patch)
treebe6c1e0544d1e9800b5f65a4e37017f505918f0c /hsm-status/Hsm
parente3ea039428545e185b38c5633fe3576ab32f1f8e (diff)
Adds error and dummy-fail service
Diffstat (limited to 'hsm-status/Hsm')
-rw-r--r--hsm-status/Hsm/Status/Error.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/hsm-status/Hsm/Status/Error.hs b/hsm-status/Hsm/Status/Error.hs
new file mode 100644
index 0000000..2853d6b
--- /dev/null
+++ b/hsm-status/Hsm/Status/Error.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE DeriveAnyClass #-}
+
+module Hsm.Status.Error
+ ( Error(Error)
+ ) where
+
+import Data.Binary (Binary)
+import Data.Text (Text)
+import GHC.Generics (Generic)
+
+data Error =
+ Error Int Text
+ deriving (Binary, Generic, Show)