Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
b93c1206
Commit
b93c1206
authored
Oct 17, 2007
by
chak@cse.unsw.edu.au.
Browse files
TypeFamilies: should_compile/Simple22
* Demonstrates a bug in TcUnify.tcSubFun found by Andrew Appleyard
parent
1a411cbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/indexed-types/should_compile/Simple22.hs
0 → 100644
View file @
b93c1206
{-# LANGUAGE TypeFamilies #-}
module
ShouldCompile
where
data
X1
=
X1
class
C
t
where
type
D
t
f
::
t
->
D
t
->
()
instance
C
X1
where
type
D
X1
=
Bool
->
Bool
f
_
h
=
()
foo
=
f
X1
(
\
x
->
x
)
testsuite/tests/ghc-regress/indexed-types/should_compile/all.T
View file @
b93c1206
...
...
@@ -21,6 +21,7 @@ test('Simple17', expect_fail, compile, [''])
test
('
Simple18
',
normal
,
compile
,
[''])
test
('
Simple19
',
normal
,
compile
,
[''])
test
('
Simple20
',
normal
,
compile
,
[''])
test
('
Simple22
',
normal
,
compile
,
[''])
test
('
ind1
',
normal
,
compile
,
[''])
test
('
ind2
',
expect_fail_ways_if_compiler_lt
('
ghc
','
6.9
',['
profc
','
profasm
']),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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