Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
43f57418
Commit
43f57418
authored
Feb 23, 2005
by
simonpj
Browse files
[project @ 2005-02-23 13:47:26 by simonpj]
Add infix type contructor test
parent
57a8676c
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/typecheck/should_compile/all.T
View file @
43f57418
...
...
@@ -197,6 +197,7 @@ test('tc184', normal, compile, [''])
test
('
tc185
',
only_compiler_types
(['
ghc
']),
compile
,
[''])
test
('
tc186
',
normal
,
compile
,
[''])
test
('
tc187
',
normal
,
compile
,
[''])
test
('
tc188
',
normal
,
compile
,
[''])
test
('
LoopOfTheDay1
',
normal
,
compile
,
[''])
test
('
LoopOfTheDay2
',
normal
,
compile
,
[''])
...
...
testsuite/tests/ghc-regress/typecheck/should_compile/tc188.hs
0 → 100644
View file @
43f57418
{-# OPTIONS -fglasgow-exts #-}
-- Test infix type constructors for type synonyms
module
ShouldCompile
where
infix
9
:-+-:
type
(
f
:-+-:
g
)
t
o1
o2
=
Either
(
f
t
o1
o2
)
(
g
t
o1
o2
)
data
Foo
a
b
c
=
Foo
(
a
,
b
,
c
)
type
App
f
=
f
Int
Bool
Int
f
::
(
Foo
:-+-:
Foo
)
Bool
Int
Bool
f
=
error
"urk"
g
::
App
(
Foo
:-+-:
Foo
)
g
=
error
"urk"
-------- classes --------
class
(
Eq
a
,
Eq
b
)
=>
a
:&:
b
where
op
::
a
->
b
h
::
(
a
:&:
b
)
=>
a
->
b
h
x
=
op
x
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