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
Reinier Maas
GHC
Commits
3e5c9e3c
Commit
3e5c9e3c
authored
2 years ago
by
Ben Gamari
Browse files
Options
Downloads
Patches
Plain Diff
compiler/tc: Use toException instead of SomeException
parent
3bbd2bf2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/GHC/Tc/Gen/Splice.hs
+2
-2
2 additions, 2 deletions
compiler/GHC/Tc/Gen/Splice.hs
with
2 additions
and
2 deletions
compiler/GHC/Tc/Gen/Splice.hs
+
2
−
2
View file @
3e5c9e3c
...
...
@@ -123,7 +123,7 @@ import GHC.Utils.Panic as Panic
import
GHC.Utils.Lexeme
import
GHC.Utils.Outputable
import
GHC.Utils.Logger
import
GHC.Utils.Exception
(
throwIO
,
ErrorCall
(
..
)
,
SomeException
(
..
)
)
import
GHC.Utils.Exception
(
throwIO
,
ErrorCall
(
..
))
import
GHC.Utils.TmpFs
(
newTempName
,
TempFileLifetime
(
..
)
)
...
...
@@ -1269,7 +1269,7 @@ runMeta' show_code ppr_hs run_and_convert expr
fail_with_exn
phase
exn
=
do
exn_msg
<-
liftIO
$
Panic
.
safeShowException
exn
failWithTc
$
TcRnTHError
$
THSpliceFailed
$
SpliceThrewException
phase
(
Some
Exception
exn
)
exn_msg
expr
show_code
SpliceThrewException
phase
(
to
Exception
exn
)
exn_msg
expr
show_code
{-
Note [Running typed splices in the zonker]
...
...
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