diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-08-12 09:22:34 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-08-12 09:24:27 -0700 |
commit | 3cfcfacd728fec948d72e04bfcd64bbf97979280 (patch) | |
tree | 664bc342fc00bfdc4704f3a73102f4fa5b2dc625 /src/Text/Pandoc/Readers | |
parent | 86cce2b2eb7fed4eeabdcd368c1c26470ba76dcd (diff) | |
download | pandoc-3cfcfacd728fec948d72e04bfcd64bbf97979280.tar.gz |
Use Prelude from base-compat for ghc 8.4 too.
We were having trouble building on ghc 8.4 because of
the lack of a Foldable instance for (Alt Maybe) in
base < 4.12.
Mystery: for some reason our builds were failing for gitit
but not in the pandoc CI.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/Odt/ContentReader.hs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Text/Pandoc/Readers/Odt/ContentReader.hs b/src/Text/Pandoc/Readers/Odt/ContentReader.hs index 734a6e116..5520d039f 100644 --- a/src/Text/Pandoc/Readers/Odt/ContentReader.hs +++ b/src/Text/Pandoc/Readers/Odt/ContentReader.hs @@ -7,9 +7,6 @@ {-# LANGUAGE TupleSections #-} {-# LANGUAGE ViewPatterns #-} {-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE StandaloneDeriving #-} -{-# LANGUAGE FlexibleInstances #-} -{-# LANGUAGE FlexibleContexts #-} {- | Module : Text.Pandoc.Readers.Odt.ContentReader Copyright : Copyright (C) 2015 Martin Linnemann @@ -510,8 +507,7 @@ type InlineMatcher = ElementMatcher Inlines type BlockMatcher = ElementMatcher Blocks newtype FirstMatch a = FirstMatch (Alt Maybe a) - deriving (Monoid, Semigroup) -deriving instance Foldable FirstMatch + deriving (Foldable, Monoid, Semigroup) firstMatch :: a -> FirstMatch a firstMatch = FirstMatch . Alt . Just |