Skip to content
GitLab
Menu
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
2cc10116
Commit
2cc10116
authored
Jun 06, 2008
by
simonpj
Browse files
Test Trac
#1624
parent
af3a8ab4
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_run/T1624.hs
0 → 100644
View file @
2cc10116
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances #-}
module
Main
where
class
Foo
a
b
|
a
->
b
where
foo
::
a
->
Maybe
b
foo
x
=
Nothing
bar
::
a
->
b
instance
Foo
(
Maybe
a
)
a
where
bar
(
Just
x
)
=
x
main
=
do
{
print
(
foo
(
Just
'x'
))
;
print
(
bar
(
Just
'y'
))
}
testsuite/tests/ghc-regress/typecheck/should_run/T1624.stdout
0 → 100644
View file @
2cc10116
Nothing
'y'
testsuite/tests/ghc-regress/typecheck/should_run/all.T
View file @
2cc10116
...
...
@@ -65,3 +65,4 @@ test('tcrun040', normal, compile_and_run, [''])
test
('
church
',
normal
,
compile_and_run
,
[''])
test
('
testeq2
',
normal
,
compile_and_run
,
[''])
test
('
T1624
',
normal
,
compile_and_run
,
[''])
Write
Preview
Supports
Markdown
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