Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Francesco Gazzetta
Glasgow Haskell Compiler
Commits
a0d91693
Commit
a0d91693
authored
Jul 07, 2017
by
Ismail
Committed by
Ben Gamari
Jul 11, 2017
Browse files
Fix minor typo
parent
20880b56
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/base/Control/Exception.hs
View file @
a0d91693
...
...
@@ -376,7 +376,7 @@ handled differently. Instead, you would probably want something like:
> e <- tryJust (guard . isDoesNotExistError) (readFile f)
> let str = either (const "") id e
There are occas
s
ions when you really do need to catch any sort of
There are occasions when you really do need to catch any sort of
exception. However, in most cases this is just so you can do some
cleaning up; you aren't actually interested in the exception itself.
For example, if you open a file then you want to close it again,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment