diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2020-06-10 10:48:23 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2020-06-10 11:17:20 +0200 |
commit | b861c20ff2d7460061e73492e3a945e48ef40bac (patch) | |
tree | d28056adaaf064aa51b4cfd1763d73ca6e84f414 /lib | |
parent | 7edf96278326219e9757b6c1954db062f9e25d61 (diff) | |
download | hakyll-b861c20ff2d7460061e73492e3a945e48ef40bac.tar.gz |
Let pandoc-types 1.21+ with new Block constructors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Hakyll/Web/Pandoc/Binary.hs | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/lib/Hakyll/Web/Pandoc/Binary.hs b/lib/Hakyll/Web/Pandoc/Binary.hs index deeaf08..033ca9a 100644 --- a/lib/Hakyll/Web/Pandoc/Binary.hs +++ b/lib/Hakyll/Web/Pandoc/Binary.hs @@ -1,13 +1,14 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} +{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveGeneric #-} module Hakyll.Web.Pandoc.Binary where -import Data.Binary (Binary (..)) +import Data.Binary (Binary (..)) -import qualified Text.CSL as CSL -import qualified Text.CSL.Reference as REF -import qualified Text.CSL.Style as STY -import Text.Pandoc +import qualified Text.CSL as CSL +import qualified Text.CSL.Reference as REF +import qualified Text.CSL.Style as STY +import Text.Pandoc.Definition -------------------------------------------------------------------------------- -- orphans @@ -31,3 +32,17 @@ instance Binary REF.RefType instance Binary REF.Season instance Binary STY.Agent instance Binary STY.Formatted + +#if MIN_VERSION_pandoc_types(1, 21, 0) +instance Binary Caption +instance Binary Cell +instance Binary ColSpan +instance Binary ColWidth +instance Binary Row +instance Binary RowHeadColumns +instance Binary RowSpan +instance Binary TableBody +instance Binary TableFoot +instance Binary TableHead +#endif + |