Try fixing compile error on older ghcs.
See https://github.com/jgm/gitit/runs/3308381697
This commit is contained in:
parent
073895c340
commit
ec34497bc1
1 changed files with 5 additions and 1 deletions
|
@ -7,6 +7,9 @@
|
|||
{-# LANGUAGE TupleSections #-}
|
||||
{-# LANGUAGE ViewPatterns #-}
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
{-# LANGUAGE StandaloneDeriving #-}
|
||||
{-# LANGUAGE FlexibleInstances #-}
|
||||
{-# LANGUAGE FlexibleContexts #-}
|
||||
{- |
|
||||
Module : Text.Pandoc.Readers.Odt.ContentReader
|
||||
Copyright : Copyright (C) 2015 Martin Linnemann
|
||||
|
@ -507,7 +510,8 @@ type InlineMatcher = ElementMatcher Inlines
|
|||
type BlockMatcher = ElementMatcher Blocks
|
||||
|
||||
newtype FirstMatch a = FirstMatch (Alt Maybe a)
|
||||
deriving (Foldable, Monoid, Semigroup)
|
||||
deriving (Monoid, Semigroup)
|
||||
deriving instance Foldable FirstMatch
|
||||
|
||||
firstMatch :: a -> FirstMatch a
|
||||
firstMatch = FirstMatch . Alt . Just
|
||||
|
|
Loading…
Add table
Reference in a new issue