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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
gershomb
GHC
Commits
e835fdb1
Commit
e835fdb1
authored
6 years ago
by
Ömer Sinan Ağacan
Browse files
Options
Downloads
Patches
Plain Diff
Add regression test for #15321
parent
39de4e3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
testsuite/tests/th/T15321.hs
+9
-0
9 additions, 0 deletions
testsuite/tests/th/T15321.hs
testsuite/tests/th/T15321.stderr
+12
-0
12 additions, 0 deletions
testsuite/tests/th/T15321.stderr
testsuite/tests/th/all.T
+1
-0
1 addition, 0 deletions
testsuite/tests/th/all.T
with
22 additions
and
0 deletions
testsuite/tests/th/T15321.hs
0 → 100644
+
9
−
0
View file @
e835fdb1
{-# LANGUAGE TemplateHaskell #-}
module
T15321
where
foo
::
String
foo
=
test
bar
::
String
bar
=
$
(
_
"baz"
)
This diff is collapsed.
Click to expand it.
testsuite/tests/th/T15321.stderr
0 → 100644
+
12
−
0
View file @
e835fdb1
T15321.hs:9:9: error:
• Found hole: _ :: [Char] -> Language.Haskell.TH.Lib.Internal.ExpQ
• In the expression: _
In the expression: _ "baz"
In the untyped splice: $(_ "baz")
• Valid hole fits include
fail :: forall (m :: * -> *) a. Monad m => String -> m a
with fail @Language.Haskell.TH.Syntax.Q
@Language.Haskell.TH.Syntax.Exp
(imported from ‘Prelude’ at T15321.hs:3:8-13
(and originally defined in ‘GHC.Base’))
This diff is collapsed.
Click to expand it.
testsuite/tests/th/all.T
+
1
−
0
View file @
e835fdb1
...
...
@@ -415,3 +415,4 @@ test('T14885a', normal, compile, [''])
test
('
T14885b
',
normal
,
compile
,
[''])
test
('
T14885c
',
normal
,
compile
,
[''])
test
('
T15243
',
normal
,
compile
,
['
-dsuppress-uniques
'])
test
('
T15321
',
normal
,
compile_fail
,
[''])
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