Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,252
Issues
4,252
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
397
Merge Requests
397
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
6fcd8891
Commit
6fcd8891
authored
May 27, 2009
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#3177
parent
9a7d7300
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
0 deletions
+40
-0
testsuite/tests/ghc-regress/th/T3177.hs
testsuite/tests/ghc-regress/th/T3177.hs
+14
-0
testsuite/tests/ghc-regress/th/T3177a.hs
testsuite/tests/ghc-regress/th/T3177a.hs
+13
-0
testsuite/tests/ghc-regress/th/T3177a.stderr
testsuite/tests/ghc-regress/th/T3177a.stderr
+11
-0
testsuite/tests/ghc-regress/th/all.T
testsuite/tests/ghc-regress/th/all.T
+2
-0
No files found.
testsuite/tests/ghc-regress/th/T3177.hs
0 → 100644
View file @
6fcd8891
{- LANGUAGE TemplateHaskell #-}
-- Template Haskell type splices
module
T3177
where
f
::
$
(
id
[
t
|
Int
|]
)
f
=
3
class
C
a
where
op
::
a
->
a
instance
C
a
=>
C
(
$
(
[
t
|
Maybe
|]
)
a
)
where
op
x
=
fmap
op
x
testsuite/tests/ghc-regress/th/T3177a.hs
0 → 100644
View file @
6fcd8891
{- LANGUAGE TemplateHaskell #-}
-- Template Haskell type splices
-- Should fail, with a decent error message
module
T3177a
where
f
::
$
(
id
[
t
|
Int Int
|]
)
f
=
3
g
::
Int
Int
g
=
3
testsuite/tests/ghc-regress/th/T3177a.stderr
0 → 100644
View file @
6fcd8891
T3177a.hs:8:14:
`Int' is applied to too many type arguments
In the Template Haskell quotation [t| Int Int |]
In the first argument of `id', namely `[t| Int Int |]'
In the expression: id [t| Int Int |]
T3177a.hs:11:5:
`Int' is applied to too many type arguments
In the type signature for `g':
g :: Int Int
testsuite/tests/ghc-regress/th/all.T
View file @
6fcd8891
...
...
@@ -142,4 +142,6 @@ test('TH_pragma',
if_compiler_lt
('
ghc
',
'
6.11
',
expect_fail
),
compile
,
['
-v0 -ddump-splices -dsuppress-uniques -S
'])
test
('
T3177
',
normal
,
compile
,
['
-v0
'])
test
('
T3177a
',
normal
,
compile_fail
,
['
-v0
'])
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