@@ -1128,13 +1128,13 @@ gridTableFooter = optional blanklines
11281128---
11291129
11301130-- | Removes the ParsecT layer from the monad transformer stack
1131−readWithM :: (Stream s m Char, ToText s)
1132− => ParserT s st m a -- ^ parser
1131+readWithM :: Monad m
1132+ => ParserT Text st m a -- ^ parser
11331133 -> st -- ^ initial state
1134− -> s -- ^ input
1134+ -> Text -- ^ input
11351135 -> m (Either PandocError a)
11361136readWithM parser state input =
1137− mapLeft (PandocParsecError $ toText input) `liftM` runParserT parser state "source" input
1137+ mapLeft (PandocParsecError input) <$> runParserT parser state "source" input
11381138
11391139-- | Parse a string with a given parser and state
11401140readWith :: Parser Text st a