From a1cfb7e1078e07af80de617689bb1c1e6a65ec46 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Tue, 12 Dec 2023 02:57:58 +0100 Subject: chore: resolve binary Node instance --- app/CMark/Extra.hs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/CMark/Extra.hs (limited to 'app/CMark') 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 -- cgit v1.2.3