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,334
Issues
4,334
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
368
Merge Requests
368
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
487c90ed
Commit
487c90ed
authored
Sep 11, 2015
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for Trac
#10806
parent
a870738a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
testsuite/tests/indexed-types/should_compile/T10806.hs
testsuite/tests/indexed-types/should_compile/T10806.hs
+11
-0
testsuite/tests/indexed-types/should_compile/T10806.stderr
testsuite/tests/indexed-types/should_compile/T10806.stderr
+9
-0
testsuite/tests/indexed-types/should_compile/all.T
testsuite/tests/indexed-types/should_compile/all.T
+1
-1
No files found.
testsuite/tests/indexed-types/should_compile/T10806.hs
0 → 100644
View file @
487c90ed
{-# LANGUAGE GADTs, ExplicitNamespaces, TypeOperators, DataKinds #-}
module
T10806
where
import
GHC.TypeLits
(
Nat
,
type
(
<=
))
data
Q
a
where
Q
::
(
a
<=
b
,
b
<=
c
)
=>
proxy
a
->
proxy
b
->
Q
c
triggersLoop
::
Q
b
->
Q
b
->
Bool
triggersLoop
(
Q
_
_
)
(
Q
_
_
)
=
print
'x'
'y'
testsuite/tests/indexed-types/should_compile/T10806.stderr
0 → 100644
View file @
487c90ed
T10806.hs:11:32: error:
Couldn't match expected type ‘Char -> Bool’
with actual type ‘IO ()’
The function ‘print’ is applied to two arguments,
but its type ‘Char -> IO ()’ has only one
In the expression: print 'x' 'y'
In an equation for ‘triggersLoop’:
triggersLoop (Q _ _) (Q _ _) = print 'x' 'y'
testsuite/tests/indexed-types/should_compile/all.T
View file @
487c90ed
...
@@ -262,4 +262,4 @@ test('T10507', normal, compile, [''])
...
@@ -262,4 +262,4 @@ test('T10507', normal, compile, [''])
test
('
T10634
',
normal
,
compile
,
[''])
test
('
T10634
',
normal
,
compile
,
[''])
test
('
T10713
',
normal
,
compile
,
[''])
test
('
T10713
',
normal
,
compile
,
[''])
test
('
T10753
',
normal
,
compile
,
[''])
test
('
T10753
',
normal
,
compile
,
[''])
test
('
T10806
',
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