@@ -826,10 +826,10 @@ gridTableFooter = blanklines
826826---
827827
828828-- | Parse a string with a given parser and state.
829−readWith :: (Show s, Stream s Identity Char)
830− => ParserT s st Identity a -- ^ parser
831− -> st -- ^ initial state
832− -> s -- ^ input
829+readWith :: (Stream [Char] Identity Char)
830+ => ParserT [Char] st Identity a -- ^ parser
831+ -> st -- ^ initial state
832+ -> [Char] -- ^ input
833833 -> a
834834readWith parser state input =
835835 case runParser parser state "source" input of
@@ -837,16 +837,16 @@ readWith parser state input =
837837 let errPos = errorPos err'
838838 errLine = sourceLine errPos
839839 errColumn = sourceColumn errPos
840− theline = (lines (show input) ++ [""]) !! (errLine - 1)
840+ theline = (lines input ++ [""]) !! (errLine - 1)
841841 in error $ "\nError at " ++ show err' ++ "\n" ++
842842 theline ++ "\n" ++ replicate (errColumn - 1) ' ' ++
843843 "^"
844844 Right result -> result
845845
846846-- | Parse a string with @parser@ (for testing).
847−testStringWith :: (Show s, Show a, Stream s Identity Char)
848− => ParserT s ParserState Identity a
849− -> s
847+testStringWith :: (Show a, Stream [Char] Identity Char)
848+ => ParserT [Char] ParserState Identity a
849+ -> [Char]
850850 -> IO ()
851851testStringWith parser str = UTF8.putStrLn $ show $
852852 readWith parser defaultParserState str