diff options
| author | Ian Lynagh <igloo@earth.li> | 2011-07-07 19:09:22 +0100 |
|---|---|---|
| committer | Ian Lynagh <igloo@earth.li> | 2011-07-07 20:24:48 +0100 |
| commit | e11e9ff5045dd2e0ee9d109057c15459d1e5011f (patch) | |
| tree | 5b5fe0572acd4430ddc53f4d33cd99585937ece7 | |
| parent | 3f1606f9e20753ee34a63a7913554ce43283dbf9 (diff) | |
| download | haskell-e11e9ff5045dd2e0ee9d109057c15459d1e5011f.tar.gz | |
Correct a comment
| -rw-r--r-- | libraries/base/GHC/Show.lhs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libraries/base/GHC/Show.lhs b/libraries/base/GHC/Show.lhs index 1645b4a8da..b0f5ee3900 100644 --- a/libraries/base/GHC/Show.lhs +++ b/libraries/base/GHC/Show.lhs @@ -362,13 +362,11 @@ showLitString (c : cs) s = showLitChar c (showLitString cs s) showMultiLineString :: String -> [String] -- | Like 'showLitString' (expand escape characters using Haskell --- escape conventions), but +-- escape conventions), but -- * break the string into multiple lines -- * wrap the entire thing in double quotes --- Example: @breakMultiLineString "hello\ngoodbye\nblah"@ --- returns @["\"hello\\", "\\goodbye\\", "\\blah\"" ]@ --- where those "\\" are really just a single backslash --- (but I'm writing them here as Haskell literals) +-- Example: @showLitString "hello\ngoodbye\nblah"@ +-- returns @["\"hello\\", "\\goodbye\\", "\\blah\""]@ showMultiLineString str = go '\"' str where |
