Refined constraint for HasQuoteContext instance.

in hopes that this will help the ghc 7.8.4 build...
This commit is contained in:
John MacFarlane 2017-02-20 15:25:47 +01:00
parent 3ccf3fad2c
commit 3c427fc17d

View file

@ -960,7 +960,7 @@ class HasQuoteContext st m where
getQuoteContext :: (Stream s m t) => ParsecT s st m QuoteContext
withQuoteContext :: QuoteContext -> ParsecT s st m a -> ParsecT s st m a
instance Monad m => HasQuoteContext ParserState m where
instance PandocMonad m => HasQuoteContext ParserState m where
getQuoteContext = stateQuoteContext <$> getState
withQuoteContext context parser = do
oldState <- getState