summaryrefslogtreecommitdiff
path: root/lib/Types.hs
diff options
context:
space:
mode:
authorstuebinm2021-12-18 17:52:25 +0100
committerstuebinm2021-12-18 17:52:25 +0100
commitaa897bb7e2ae257c2680521e6b1c1cad1237df53 (patch)
tree0ae2e1582349d4cf79f941bfb647acb2417c854b /lib/Types.hs
parent96a3cc24b3b62e2e88b0d31e66204c16d20f2aa9 (diff)
fixed parsing of tiled objects
(points behave slightly differntly than I thought)
Diffstat (limited to '')
-rw-r--r--lib/Types.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Types.hs b/lib/Types.hs
index 978ada2..3ec9ebc 100644
--- a/lib/Types.hs
+++ b/lib/Types.hs
@@ -93,6 +93,9 @@ instance ToJSON Lint where
toJSON (Offers l) = A.object
[ "msg" .= prettyprint l
, "level" .= A.String "Entrypoint Info" ]
+ toJSON (Badge _) = A.object
+ [ "msg" .= A.String "found a badge"
+ , "level" .= A.String "Badge Info"]
instance ToJSON Hint where
toJSON (Hint l m) = A.object