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
Tobias Decking
GHC
Commits
f2fcb619
Commit
f2fcb619
authored
Jun 19, 2003
by
ross
Browse files
[project @ 2003-06-19 09:13:43 by ross]
more arrows tests
parent
b63c7192
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/arrows/all.T
View file @
f2fcb619
...
...
@@ -3,8 +3,10 @@ test('arrowapply2', normal, compile, [''])
test
('
arrowapply3
',
normal
,
compile
,
[''])
test
('
arrowcase1
',
normal
,
compile
,
[''])
test
('
arrowdo1
',
normal
,
compile
,
[''])
test
('
arrowdo2
',
normal
,
compile
,
[''])
test
('
arrowform1
',
normal
,
compile
,
[''])
test
('
arrowif1
',
normal
,
compile
,
[''])
test
('
arrowlet1
',
normal
,
compile
,
[''])
# test('mod1', normal, compile_fail, [''])
# test('mod2', normal, compile_fail, [''])
...
...
testsuite/tests/ghc-regress/arrows/arrowdo2.hs
0 → 100644
View file @
f2fcb619
{-# OPTIONS -fglasgow-exts #-}
module
ShouldCompile
where
import
Control.Arrow
f
::
Arrow
a
=>
a
(
Int
,
Int
)
Int
f
=
proc
(
x
,
y
)
->
do
let
z
=
x
*
y
returnA
-<
y
+
z
testsuite/tests/ghc-regress/arrows/arrowlet1.hs
0 → 100644
View file @
f2fcb619
{-# OPTIONS -fglasgow-exts #-}
module
ShouldCompile
where
import
Control.Arrow
f
::
Arrow
a
=>
a
(
Int
,
Int
)
Int
f
=
proc
(
x
,
y
)
->
let
z
=
x
*
y
in
returnA
-<
y
+
z
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