diff options
author | Cyd Parser <cydparser@gmail.com> | 2017-10-31 23:13:50 -0700 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-11-03 10:17:20 -0400 |
commit | 5d48f7ce7030ea764446d3ad8cecd60d016f3197 (patch) | |
tree | 6360ae0971dbfb7a4aebee7c08827de13a425487 /libraries/base/GHC/Exception.hs | |
parent | 19ca2cab4b32ff2eaacb1fb3502849ad762af0e1 (diff) | |
download | haskell-5d48f7ce7030ea764446d3ad8cecd60d016f3197.tar.gz |
Fix documentation and comment issues
Diffstat (limited to 'libraries/base/GHC/Exception.hs')
-rw-r--r-- | libraries/base/GHC/Exception.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/base/GHC/Exception.hs b/libraries/base/GHC/Exception.hs index 6a77e6e50b..725b864974 100644 --- a/libraries/base/GHC/Exception.hs +++ b/libraries/base/GHC/Exception.hs @@ -130,13 +130,13 @@ We can now catch a @MismatchedParentheses@ exception as @SomeCompilerException@, but not other types, e.g. @IOException@: @ -*Main> throw MismatchedParentheses `catch` \e -> putStrLn (\"Caught \" ++ show (e :: MismatchedParentheses)) +*Main> throw MismatchedParentheses \`catch\` \\e -> putStrLn (\"Caught \" ++ show (e :: MismatchedParentheses)) Caught MismatchedParentheses -*Main> throw MismatchedParentheses `catch` \e -> putStrLn (\"Caught \" ++ show (e :: SomeFrontendException)) +*Main> throw MismatchedParentheses \`catch\` \\e -> putStrLn (\"Caught \" ++ show (e :: SomeFrontendException)) Caught MismatchedParentheses -*Main> throw MismatchedParentheses `catch` \e -> putStrLn (\"Caught \" ++ show (e :: SomeCompilerException)) +*Main> throw MismatchedParentheses \`catch\` \\e -> putStrLn (\"Caught \" ++ show (e :: SomeCompilerException)) Caught MismatchedParentheses -*Main> throw MismatchedParentheses `catch` \e -> putStrLn (\"Caught \" ++ show (e :: IOException)) +*Main> throw MismatchedParentheses \`catch\` \\e -> putStrLn (\"Caught \" ++ show (e :: IOException)) *** Exception: MismatchedParentheses @ |