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,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
376
Merge Requests
376
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
9d921d6b
Commit
9d921d6b
authored
Dec 18, 2015
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#11248
,
#11249
parent
f857d27a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
0 deletions
+86
-0
testsuite/tests/polykinds/T11248.hs
testsuite/tests/polykinds/T11248.hs
+43
-0
testsuite/tests/polykinds/T11249.hs
testsuite/tests/polykinds/T11249.hs
+40
-0
testsuite/tests/polykinds/all.T
testsuite/tests/polykinds/all.T
+3
-0
No files found.
testsuite/tests/polykinds/T11248.hs
0 → 100644
View file @
9d921d6b
{-# LANGUAGE DataKinds, TypeOperators, TypeFamilies,
KindSignatures, ConstraintKinds #-}
module
T11248
where
import
GHC.TypeLits
type
a
/
b
=
FDiv
a
b
type
a
**
b
=
FMul
a
b
type
family
FDiv
a
b
where
FDiv
11648
128
=
91
type
family
FMul
a
b
where
FMul
64
91
=
5824
type
family
FGCD
a
b
where
FGCD
128
448
=
64
FGCD
128
5824
=
64
type
family
FLCM
a
b
where
FLCM
128
5824
=
11648
data
CT
(
m
::
Nat
)
(
m'
::
Nat
)
type
H0
=
128
type
H1
=
448
type
H0'
=
11648
type
H1'
=
5824
main'
=
let
x
=
undefined
::
CT
H0
H0'
in
foo
x
::
CT
H1
H1'
foo
x
=
bug
x
type
Ctx2
e
r
s
e'
r'
=
(
e
~
FGCD
r
e'
,
r'
~
FLCM
r
e'
,
e
~
FGCD
r
s
)
type
Ctx1
e
r
s
e'
r'
=
(
Ctx2
e
r
s
e'
r'
,
e'
~
(
e
**
(
r'
/
r
)))
bug
::
(
Ctx1
e
r
s
e'
r'
)
=>
CT
r
r'
->
CT
s
s'
bug
=
undefined
testsuite/tests/polykinds/T11249.hs
0 → 100644
View file @
9d921d6b
{-# LANGUAGE DataKinds, TypeOperators, TypeFamilies,
KindSignatures, ConstraintKinds #-}
module
T11249
where
import
GHC.TypeLits
type
a
/
b
=
FDiv
a
b
type
a
**
b
=
FMul
a
b
type
family
FDiv
a
b
where
FDiv
11648
128
=
91
type
family
FMul
a
b
where
FMul
64
91
=
5824
type
family
FGCD
a
b
where
FGCD
128
448
=
64
FGCD
128
5824
=
64
type
family
FLCM
a
b
where
FLCM
128
5824
=
11648
data
CT
(
m
::
Nat
)
(
m'
::
Nat
)
type
H0
=
128
type
H1
=
448
type
H0'
=
11648
type
H1'
=
5824
main'
=
let
x
=
undefined
::
CT
H0
H0'
in
foo
x
::
CT
H1
H1'
foo
x
=
bug
x
type
Ctx2
e
r
s
e'
r'
=
(
e
~
FGCD
r
e'
,
r'
~
FLCM
r
e'
,
e
~
FGCD
r
s
)
bug
::
(
Ctx2
e
r
s
e'
r'
,
e'
~
(
e
**
(
FDiv
r'
r
)))
=>
CT
r
r'
->
CT
s
s'
bug
=
undefined
testsuite/tests/polykinds/all.T
View file @
9d921d6b
...
...
@@ -127,3 +127,6 @@ test('T11142', normal, compile_fail, [''])
test
('
SigTvKinds
',
normal
,
compile
,
[''])
test
('
SigTvKinds2
',
expect_broken
(
11203
),
compile_fail
,
[''])
test
('
T9017
',
normal
,
compile_fail
,
[''])
test
('
T11249
',
normal
,
compile
,
[''])
test
('
T11248
',
normal
,
compile
,
[''])
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