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,251
Issues
4,251
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
398
Merge Requests
398
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
1d9f4918
Commit
1d9f4918
authored
Apr 20, 2012
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://darcs.haskell.org/testsuite
parents
ae2c5344
d2e2e137
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
73 deletions
+81
-73
testsuite/tests/polykinds/T5938.hs
testsuite/tests/polykinds/T5938.hs
+7
-0
testsuite/tests/polykinds/all.T
testsuite/tests/polykinds/all.T
+1
-0
testsuite/tests/simplCore/should_compile/rule2.stderr
testsuite/tests/simplCore/should_compile/rule2.stderr
+30
-30
testsuite/tests/typecheck/should_compile/tc141.stderr
testsuite/tests/typecheck/should_compile/tc141.stderr
+43
-43
No files found.
testsuite/tests/polykinds/T5938.hs
0 → 100644
View file @
1d9f4918
{-# LANGUAGE PolyKinds, TypeFamilies, DataKinds #-}
module
T5938
where
type
family
KindFam
a
type
instance
KindFam
(
a
::
*
)
=
Int
type
instance
KindFam
(
a
::
Bool
)
=
Bool
type
instance
KindFam
(
a
::
Maybe
k
)
=
Char
-- doesn't work
testsuite/tests/polykinds/all.T
View file @
1d9f4918
...
...
@@ -31,4 +31,5 @@ test('T5881', normal, run_command, ['$MAKE -s --no-print-directory T5881'])
test
('
T5716
',
normal
,
compile_fail
,
[''])
test
('
T5937
',
normal
,
compile
,
[''])
test
('
T5935
',
normal
,
compile
,
[''])
test
('
T5938
',
normal
,
compile
,
[''])
test
('
T5948
',
normal
,
compile
,
[''])
testsuite/tests/simplCore/should_compile/rule2.stderr
View file @
1d9f4918
==================== FloatOut stats: ====================
1 Lets floated to top level; 0 Lets floated elsewhere; from 4 Lambda groups
==================== FloatOut stats: ====================
0 Lets floated to top level; 0 Lets floated elsewhere; from 3 Lambda groups
==================== Grand total simplifier statistics ====================
Total ticks: 11
2 PreInlineUnconditionally
1 f
1 lvl
1 UnfoldingDone 1 Roman.bar
1 RuleFired 1 foo/bar
7 BetaReduction
1 f
1 m
1 a
1
b
1
m
1 m
1 a
8 SimplifierDone 8
==================== FloatOut stats: ====================
1 Lets floated to top level; 0 Lets floated elsewhere; from 4 Lambda groups
==================== FloatOut stats: ====================
0 Lets floated to top level; 0 Lets floated elsewhere; from 3 Lambda groups
==================== Grand total simplifier statistics ====================
Total ticks: 11
2 PreInlineUnconditionally
1 f
1 lvl
1 UnfoldingDone 1 Roman.bar
1 RuleFired 1 foo/bar
7 BetaReduction
1 f
1 m
1 a
1
m
1
b
1 m
1 a
8 SimplifierDone 8
testsuite/tests/typecheck/should_compile/tc141.stderr
View file @
1d9f4918
tc141.hs:11:12:
You cannot bind scoped type variable `a'
in a pattern binding signature
In the pattern: p :: a
In the pattern: (p :: a, q :: a)
In a pattern binding: (p :: a, q :: a) = x
tc141.hs:11:31:
Couldn't match expected type `a1' with actual type `a'
`a1' is a rigid type variable bound by
an expression type signature: a1 at tc141.hs:11:31
`a' is a rigid type variable bound by
the inferred type of f :: (a, a) -> (t, a) at tc141.hs:11:1
In the expression: q :: a
In the expression: (q :: a, p)
In the expression: let (p :: a, q :: a) = x in (q :: a, p)
tc141.hs:13:13:
You cannot bind scoped type variable `a'
in a pattern binding signature
In the pattern: y :: a
In a pattern binding: y :: a = a
In the expression:
let y :: a = a in
let
v :: a
v = b
in v
tc141.hs:15:18:
Couldn't match expected type `a
1' with actual type `t1'
`a
1' is a rigid type variable bound by
the type signature for v :: a
1 at tc141.hs:14:19
`t
1' is a rigid type variable bound by
the inferred type of g :: t -> t1 -> a at tc141.hs:13:1
In the expression: b
In an equation for `v': v = b
In the expression:
let
v :: a
v = b
in v
tc141.hs:11:12:
You cannot bind scoped type variable `a'
in a pattern binding signature
In the pattern: p :: a
In the pattern: (p :: a, q :: a)
In a pattern binding: (p :: a, q :: a) = x
tc141.hs:11:31:
Couldn't match expected type `a1' with actual type `a'
`a1' is a rigid type variable bound by
an expression type signature: a1 at tc141.hs:11:31
`a' is a rigid type variable bound by
the inferred type of f :: (a, a) -> (t, a) at tc141.hs:11:1
In the expression: q :: a
In the expression: (q :: a, p)
In the expression: let (p :: a, q :: a) = x in (q :: a, p)
tc141.hs:13:13:
You cannot bind scoped type variable `a'
in a pattern binding signature
In the pattern: y :: a
In a pattern binding: y :: a = a
In the expression:
let y :: a = a in
let
v :: a
v = b
in v
tc141.hs:15:18:
Couldn't match expected type `a
2' with actual type `t'
`a
2' is a rigid type variable bound by
the type signature for v :: a
2 at tc141.hs:14:19
`t
' is a rigid type variable bound by
the inferred type of g :: a -> t -> a1 at tc141.hs:13:1
In the expression: b
In an equation for `v': v = b
In the expression:
let
v :: a
v = b
in v
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