Protect OVERLAPS pragma with CPP.

This commit is contained in:
John MacFarlane 2017-08-20 11:13:42 -07:00
parent ba3088f0b3
commit e334d7dc38

View file

@ -866,7 +866,11 @@ instance (MonadTrans t, PandocMonad m, Functor (t m),
putCommonState = lift . putCommonState
logOutput = lift . logOutput
#if MIN_VERSION_base(4,8,0)
instance {-# OVERLAPS #-} PandocMonad m => PandocMonad (ParsecT s st m) where
#else
instance PandocMonad m => PandocMonad (ParsecT s st m) where
#endif
lookupEnv = lift . lookupEnv
getCurrentTime = lift getCurrentTime
getCurrentTimeZone = lift getCurrentTimeZone