git.iko.soy/typeable/pandoc
on master help sign in
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.

commit45f3c53dd9d540abac958b13783677c263aa6658 authorJesse Rosenthal <jrosenthal@jhu.edu> dateMon 21 Nov 2016, 19:04 (10 years ago) parent6595318
1 file changed+1−1
src/Text/Pandoc/Class.hs+1−1
src/Text/Pandoc/Class.hs+1−1
@@ -67,7 +67,7 @@ import Control.Monad.Reader hiding (fail)
6767import Data.Word (Word8)
6868import Data.Typeable
6969
70−class Monad m => PandocMonad m where
70+class (Functor m, Applicative m, Monad m) => PandocMonad m where
7171 lookupEnv :: String -> m (Maybe String)
7272 getCurrentTime :: m UTCTime
7373 getDefaultReferenceDocx :: Maybe FilePath -> m Archive