Skip to content

Commit

Permalink
s/encodeListWithB/primMapListBounded/ (fixes #50)
Browse files Browse the repository at this point in the history
  • Loading branch information
fumieval committed Jul 4, 2020
1 parent d356aa0 commit 00fc29e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/ByteString/Builder/Prim.hs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ import Data.ByteString.Builder.Prim
renderString :: String -\> Builder
renderString cs =
B.charUtf8 \'\"\' \<\> E.'encodeListWithB' escape cs \<\> B.charUtf8 \'\"\'
B.charUtf8 \'\"\' \<\> E.'primMapListBounded' escape cs \<\> B.charUtf8 \'\"\'
where
escape :: E.'BoundedPrim' Char
escape =
Expand Down Expand Up @@ -301,7 +301,7 @@ corresponding functions in future releases of this library.
-- >
-- > renderString :: String -> Builder
-- > renderString cs =
-- > charUtf8 '"' <> encodeListWithB escapedUtf8 cs <> charUtf8 '"'
-- > charUtf8 '"' <> primMapListBounded escapedUtf8 cs <> charUtf8 '"'
-- > where
-- > escapedUtf8 :: BoundedPrim Char
-- > escapedUtf8 =
Expand Down

0 comments on commit 00fc29e

Please sign in to comment.