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,274
Issues
4,274
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
412
Merge Requests
412
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
619d8d89
Commit
619d8d89
authored
Aug 03, 2011
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#5358
parent
3eb85d3d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
testsuite/tests/th/T5358.hs
testsuite/tests/th/T5358.hs
+14
-0
testsuite/tests/th/T5358.stderr
testsuite/tests/th/T5358.stderr
+15
-0
testsuite/tests/th/all.T
testsuite/tests/th/all.T
+2
-0
No files found.
testsuite/tests/th/T5358.hs
0 → 100644
View file @
619d8d89
{-# LANGUAGE TemplateHaskell #-}
module
T5358
where
import
Language.Haskell.TH
t1
,
t2
::
Int
t1
x
=
x
t2
x
=
x
prop_x1
x
=
t1
x
==
t2
x
runTests
=
$
(
do
VarI
_
t
_
_
<-
reify
(
mkName
"prop_x1"
)
error
$
pprint
t
)
testsuite/tests/th/T5358.stderr
0 → 100644
View file @
619d8d89
T5358.hs:7:1:
The equation(s) for `t1' have one argument,
but its type `Int' has none
T5358.hs:8:1:
The equation(s) for `t2' have one argument,
but its type `Int' has none
T5358.hs:10:13:
The function `t1' is applied to one argument,
but its type `Int' has none
In the first argument of `(==)', namely `t1 x'
In the expression: t1 x == t2 x
In an equation for `prop_x1': prop_x1 x = t1 x == t2 x
testsuite/tests/th/all.T
View file @
619d8d89
...
...
@@ -192,3 +192,5 @@ test('TH_unresolvedInfix2',
normal
,
compile_fail
,
['
-v0
'])
test
('
T5358
',
normal
,
compile_fail
,
[''])
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