Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
8e08f83a
Commit
8e08f83a
authored
Jul 04, 2012
by
Simon Marlow
Browse files
Add Functor instance for Handler (
#7047
)
parent
9e3fb41b
Changes
1
Show whitespace changes
Inline
Side-by-side
libraries/base/Control/Exception.hs
View file @
8e08f83a
...
...
@@ -164,6 +164,9 @@ import System (ExitCode())
-- | You need this when using 'catches'.
data
Handler
a
=
forall
e
.
Exception
e
=>
Handler
(
e
->
IO
a
)
instance
Functor
Handler
where
fmap
f
(
Handler
h
)
=
Handler
(
fmap
f
.
h
)
{- |
Sometimes you want to catch two different sorts of exception. You could
do something like
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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