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
ae241b61
Commit
ae241b61
authored
Sep 05, 2006
by
simonpj
Browse files
Add test for dependency analysis in type checking
parent
72e3be2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_compile/all.T
View file @
ae241b61
...
...
@@ -216,6 +216,7 @@ test('tc203', normal, compile, [''])
test
('
tc204
',
normal
,
compile
,
[''])
test
('
tc205
',
normal
,
compile
,
[''])
test
('
tc206
',
normal
,
compile
,
[''])
test
('
tc207
',
normal
,
compile
,
[''])
# Omitting temporarily
# test('syn-perf', normal, compile, ['-fcontext-stack=30'])
...
...
testsuite/tests/ghc-regress/typecheck/should_compile/tc207.hs
0 → 100644
View file @
ae241b61
{-# OPTIONS -fglasgow-exts #-}
-- Tests enhanced polymorphism
module
ShouldCompile
where
foo
xs
=
let
f
::
Eq
a
=>
[
a
]
->
[
a
]
f
[]
=
[]
f
xs
|
null
(
g
[
True
])
=
[]
|
otherwise
=
tail
(
g
xs
)
g
::
Eq
b
=>
[
b
]
->
[
b
]
g
[]
=
[]
g
xs
|
null
(
f
"hello"
)
=
[]
|
otherwise
=
tail
(
f
xs
)
in
f
xs
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