aboutsummaryrefslogtreecommitdiffstats
path: root/app/CMark
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-12 02:57:58 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-12 04:00:22 +0100
commita1cfb7e1078e07af80de617689bb1c1e6a65ec46 (patch)
treedd6e10931a3fed50c09158f01dac99c2b23af005 /app/CMark
parentc553d97f53ac0efc144413444012932125ad9a55 (diff)
chore: resolve binary Node instance
Diffstat (limited to 'app/CMark')
-rw-r--r--app/CMark/Extra.hs23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/CMark/Extra.hs b/app/CMark/Extra.hs
new file mode 100644
index 0000000..1d7d553
--- /dev/null
+++ b/app/CMark/Extra.hs
@@ -0,0 +1,23 @@
+{-# OPTIONS_GHC -fno-warn-orphans #-}
+
+module CMark.Extra where
+
+import CMark
+import Data.Binary (Binary)
+
+-- TODO Generic-derived Binary instances might be slow
+--
+-- https://github.com/kolmodin/binary/issues/200
+--
+-- @backlog
+instance Binary Node
+
+instance Binary PosInfo
+
+instance Binary NodeType
+
+instance Binary ListAttributes
+
+instance Binary ListType
+
+instance Binary DelimType