Class: Specify Functor and Applicative

We're still compiling for 7.8 which is pre-AMP, so let's just be
explicit about it so we can use applicative notation.
This commit is contained in:
Jesse Rosenthal 2016-11-21 19:04:39 -05:00 committed by John MacFarlane
parent 6595318142
commit 45f3c53dd9

View file

@ -67,7 +67,7 @@ import Control.Monad.Reader hiding (fail)
import Data.Word (Word8)
import Data.Typeable
class Monad m => PandocMonad m where
class (Functor m, Applicative m, Monad m) => PandocMonad m where
lookupEnv :: String -> m (Maybe String)
getCurrentTime :: m UTCTime
getDefaultReferenceDocx :: Maybe FilePath -> m Archive