[commit: ghc] master: base: Escape \ in CallStack example (bf9ba7b)

git at git.haskell.org git at git.haskell.org
Tue Nov 7 18:13:50 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/bf9ba7b43fc8c262f24ec3d1e6e13c9a7cad4b3b/ghc

>---------------------------------------------------------------

commit bf9ba7b43fc8c262f24ec3d1e6e13c9a7cad4b3b
Author: Chris Martin <ch.martin at gmail.com>
Date:   Mon Nov 6 21:18:49 2017 -0500

    base: Escape \ in CallStack example
    
    [skip ci]


>---------------------------------------------------------------

bf9ba7b43fc8c262f24ec3d1e6e13c9a7cad4b3b
 libraries/base/GHC/Stack/Types.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/base/GHC/Stack/Types.hs b/libraries/base/GHC/Stack/Types.hs
index 54352b1..d9e7552 100644
--- a/libraries/base/GHC/Stack/Types.hs
+++ b/libraries/base/GHC/Stack/Types.hs
@@ -83,7 +83,7 @@ type HasCallStack = (?callStack :: CallStack)
 --
 -- @
 -- errorWithCallStack :: HasCallStack => String -> a
--- errorWithCallStack msg = error (msg ++ "\n" ++ prettyCallStack callStack)
+-- errorWithCallStack msg = error (msg ++ "\\n" ++ prettyCallStack callStack)
 -- @
 --
 -- Thus, if we call @errorWithCallStack@ we will get a formatted call-stack



More information about the ghc-commits mailing list