git.iko.soy/typeable/pandoc
on master help sign in
Protect OVERLAPS pragma with CPP.
commite334d7dc389203b48b8e5f0d90960d08350b93f8 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 20 Aug 2017, 11:13 (9 years ago) parentba3088f
1 file changed+4
src/Text/Pandoc/Class.hs+4
src/Text/Pandoc/Class.hs+4
@@ -866,7 +866,11 @@ instance (MonadTrans t, PandocMonad m, Functor (t m),
866866 putCommonState = lift . putCommonState
867867 logOutput = lift . logOutput
868868
869+#if MIN_VERSION_base(4,8,0)
869870instance {-# OVERLAPS #-} PandocMonad m => PandocMonad (ParsecT s st m) where
871+#else
872+instance PandocMonad m => PandocMonad (ParsecT s st m) where
873+#endif
870874 lookupEnv = lift . lookupEnv
871875 getCurrentTime = lift getCurrentTime
872876 getCurrentTimeZone = lift getCurrentTimeZone