mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2024-11-23 19:38:05 +03:00
fix build for older versions of ‘base’
This commit is contained in:
parent
48528af655
commit
6cf7e918ce
@ -41,6 +41,7 @@ import Text.Megaparsec.Pos
|
||||
#if !MIN_VERSION_base(4,8,0)
|
||||
import Control.Applicative ((<$>))
|
||||
import Data.Foldable (foldMap)
|
||||
import Data.Monoid
|
||||
#endif
|
||||
#if !MIN_VERSION_base(4,7,0)
|
||||
bool :: a -> a -> Bool -> a
|
||||
|
@ -47,6 +47,7 @@ import Text.Megaparsec.Pos
|
||||
|
||||
#if !MIN_VERSION_base(4,8,0)
|
||||
import Control.Applicative ((<$>), (<*>))
|
||||
import Data.Monoid (mempty)
|
||||
#endif
|
||||
#if !MIN_VERSION_base(4,7,0)
|
||||
bool :: a -> a -> Bool -> a
|
||||
|
Loading…
Reference in New Issue
Block a user