Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ian-Woo Kim
GHC
Commits
a0d91693
Commit
a0d91693
authored
7 years ago
by
Ismail Suleman
Committed by
Ben Gamari
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix minor typo
parent
20880b56
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/Control/Exception.hs
+1
-1
1 addition, 1 deletion
libraries/base/Control/Exception.hs
with
1 addition
and
1 deletion
libraries/base/Control/Exception.hs
+
1
−
1
View file @
a0d91693
...
@@ -376,7 +376,7 @@ handled differently. Instead, you would probably want something like:
...
@@ -376,7 +376,7 @@ handled differently. Instead, you would probably want something like:
> e <- tryJust (guard . isDoesNotExistError) (readFile f)
> e <- tryJust (guard . isDoesNotExistError) (readFile f)
> let str = either (const "") id e
> 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
exception. However, in most cases this is just so you can do some
cleaning up; you aren't actually interested in the exception itself.
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,
For example, if you open a file then you want to close it again,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment