summaryrefslogtreecommitdiff
path: root/lib/LintWriter.hs
diff options
context:
space:
mode:
authorstuebinm2021-09-18 01:34:36 +0200
committerstuebinm2021-09-18 01:34:36 +0200
commit77d1f4ce4eb3ba40d884cc4ed7fa693e16538c8d (patch)
treed452b0287f352609a7aae9e6d24f43a0eedc6e6c /lib/LintWriter.hs
parentb17396b2eeefdf113b862b254cb152557bebf68d (diff)
type check properties
/finally/ figured out that all properties just look like {name, value, type} so now that's abstracted away and Properties.hs doesn't look like javascript anymore
Diffstat (limited to 'lib/LintWriter.hs')
-rw-r--r--lib/LintWriter.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/LintWriter.hs b/lib/LintWriter.hs
index 10c727d..09a2297 100644
--- a/lib/LintWriter.hs
+++ b/lib/LintWriter.hs
@@ -23,8 +23,8 @@ data Level = Warning | Suggestion | Info | Forbidden | Error | Fatal
-- | a hint comes with an explanation (and a level)
data Hint = Hint
{ hintLevel :: Level
- , hintMsg :: Text }
- deriving (Generic, ToJSON)
+ , hintMsg :: Text
+ } deriving (Generic, ToJSON)
instance PrettyPrint Hint where
prettyprint Hint { hintMsg, hintLevel } =