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
d2b8e77f
Commit
d2b8e77f
authored
Mar 09, 2005
by
simonpj
Browse files
[project @ 2005-03-09 16:57:09 by simonpj]
add test for infix type-variable operator
parent
9d010039
Changes
3
Show whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_run/all.T
View file @
d2b8e77f
...
...
@@ -39,6 +39,7 @@ test('tcrun030', normal, compile_and_run, [''])
test
('
tcrun031
',
only_compiler_types
(['
ghc
']),
compile_and_run
,
[''])
test
('
tcrun032
',
only_compiler_types
(['
ghc
']),
compile_and_run
,
[''])
test
('
tcrun033
',
only_compiler_types
(['
ghc
']),
compile_and_run
,
[''])
test
('
tcrun034
',
only_compiler_types
(['
ghc
']),
compile_and_run
,
[''])
test
('
church
',
normal
,
compile_and_run
,
[''])
test
('
testeq2
',
normal
,
compile_and_run
,
[''])
testsuite/tests/ghc-regress/typecheck/should_run/tcrun034.hs
0 → 100644
View file @
d2b8e77f
{-# OPTIONS -fglasgow-exts #-}
module
Main
where
-- Infix type operator
f1
::
forall
m
a
b
.
(
a
`
m
`
b
)
->
((
a
`
m
`
b
)
->
a
)
->
a
f1
x
g
=
g
x
-- Infix type operator
f2
::
forall
a
b
(
-->
)
.
(
a
-->
b
)
->
((
a
-->
b
)
->
b
)
->
b
f2
x
g
=
g
x
main
=
do
{
print
(
f1
(
3
,
5
)
fst
);
print
(
f2
(
3
,
5
)
snd
)
}
testsuite/tests/ghc-regress/typecheck/should_run/tcrun034.stdout
0 → 100644
View file @
d2b8e77f
3
5
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