Skip to content

Commit 84b1c2f

Browse files
committed
Update for name changes in Data.String
1 parent e16be32 commit 84b1c2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Text/Parsing/Parser/String.purs.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ eof = do
2323
string :: forall m. (Monad m) => String -> ParserT String m String
2424
string s = do
2525
s' <- get
26-
case indexOfS s' s of
26+
case indexOf s' s of
2727
0 -> do
2828
put (Consumed true)
29-
put (substring (lengthS s) (lengthS s') s')
29+
put (substring (length s) (length s') s')
3030
return s
3131
_ -> fail $ "Expected \"" ++ s ++ "\""
3232

@@ -37,7 +37,7 @@ char = do
3737
"" -> fail "Unexpected EOF"
3838
_ -> do
3939
put (Consumed true)
40-
put (substring 1 (lengthS s) s)
40+
put (substring 1 (length s) s)
4141
return (substr 0 1 s)
4242

4343
satisfy :: forall m. (Monad m) => (String -> Boolean) -> ParserT String m String

0 commit comments

Comments
 (0)