@@ -313,8 +313,7 @@ many1Till p end = do
313 return (first:rest)
313 return (first:rest)
315-- | Like @manyTill@, but also returns the result of end parser.
315-- | Like @manyTill@, but also returns the result of end parser.
316−manyUntil :: (Stream s m t)
317− => ParserT s u m a
316+manyUntil :: ParserT s u m a
318 -> ParserT s u m b
317 -> ParserT s u m b
319 -> ParserT s u m ([a], b)
318 -> ParserT s u m ([a], b)
320manyUntil p end = scan
319manyUntil p end = scan
@@ -328,8 +327,7 @@ manyUntil p end = scan
329-- | Like @sepBy1@ from Parsec,
328-- | Like @sepBy1@ from Parsec,
330-- but does not fail if it @sep@ succeeds and @p@ fails.
329-- but does not fail if it @sep@ succeeds and @p@ fails.
331−sepBy1' :: (Stream s m t)
332− => ParsecT s u m a
330+sepBy1' :: ParsecT s u m a
333 -> ParsecT s u m sep
331 -> ParsecT s u m sep
334 -> ParsecT s u m [a]
332 -> ParsecT s u m [a]
335sepBy1' p sep = (:) <$> p <*> many (try $ sep >> p)
333sepBy1' p sep = (:) <$> p <*> many (try $ sep >> p)
@@ -440,7 +438,7 @@ stringAnyCase (x:xs) = do
440 return (firstChar:rest)
438 return (firstChar:rest)
442-- | Parse contents of 'str' using 'parser' and return result.
440-- | Parse contents of 'str' using 'parser' and return result.
443−parseFromString :: (Monad m, Stream s m Char, IsString s)
441+parseFromString :: (Stream s m Char, IsString s)
444 => ParserT s st m r
442 => ParserT s st m r
445 -> String
443 -> String
446 -> ParserT s st m r
444 -> ParserT s st m r
@@ -458,7 +456,7 @@ parseFromString parser str = do
459-- | Like 'parseFromString' but specialized for 'ParserState'.
457-- | Like 'parseFromString' but specialized for 'ParserState'.
460-- This resets 'stateLastStrPos', which is almost always what we want.
458-- This resets 'stateLastStrPos', which is almost always what we want.
461−parseFromString' :: (Monad m, Stream s m Char, IsString s)
459+parseFromString' :: (Stream s m Char, IsString s)
462 => ParserT s ParserState m a
460 => ParserT s ParserState m a
463 -> String
461 -> String
464 -> ParserT s ParserState m a
462 -> ParserT s ParserState m a
@@ -1019,7 +1017,7 @@ gridTableFooter = blanklines
1021-- | Removes the ParsecT layer from the monad transformer stack
1019-- | Removes the ParsecT layer from the monad transformer stack
1022−readWithM :: (Monad m, Stream s m Char, ToString s)
1020+readWithM :: (Stream s m Char, ToString s)
1023 => ParserT s st m a -- ^ parser
1021 => ParserT s st m a -- ^ parser
1024 -> st -- ^ initial state
1022 -> st -- ^ initial state
1025 -> s -- ^ input
1023 -> s -- ^ input
@@ -1410,7 +1408,7 @@ extractIdClass (ident, cls, kvs) = (ident', cls', kvs')
1410 Nothing -> cls
1408 Nothing -> cls
1411 kvs' = filter (\(k,_) -> k /= "id" || k /= "class") kvs
1409 kvs' = filter (\(k,_) -> k /= "id" || k /= "class") kvs
1413−insertIncludedFile' :: (PandocMonad m, HasIncludeFiles st, Monad mf)
1411+insertIncludedFile' :: (PandocMonad m, HasIncludeFiles st)
1414 => ParserT [a] st m (mf Blocks)
1412 => ParserT [a] st m (mf Blocks)
1415 -> (String -> [a])
1413 -> (String -> [a])
1416 -> [FilePath] -> FilePath
1414 -> [FilePath] -> FilePath