git.iko.soy/typeable/pandoc
on master help sign in
Pretty: Semigroup instance for Doc with base >= 4.9.
commit07e098131633e5480b7a274ce28f329bd4f9e46b authorJohn MacFarlane <jgm@berkeley.edu> dateFri 16 Mar 2018, 08:12 (9 years ago) parentec1e2c8
1 file changed+4
src/Text/Pandoc/Pretty.hs+4
src/Text/Pandoc/Pretty.hs+4
@@ -112,7 +112,11 @@ data D = Text Int String
112112 deriving (Show, Eq)
113113
114114newtype Doc = Doc { unDoc :: Seq D }
115+#if MIN_VERSION_base(4,9,0)
116+ deriving (Semigroup, Monoid, Show, Eq)
117+#else
115118 deriving (Monoid, Show, Eq)
119+#endif
116120
117121instance IsString Doc where
118122 fromString = text