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
5aab5caa
Commit
5aab5caa
authored
Jun 30, 2011
by
Simon Peyton Jones
Browse files
Test Trac #5283
parent
7d672220
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/arrows/should_compile/T5283.hs
0 → 100644
View file @
5aab5caa
{-# LANGUAGE Arrows #-}
-- Failed in ghci
module
T
where
import
Prelude
import
Control.Arrow
mapAC
::
Arrow
arr
=>
Integer
->
arr
(
env
,
b
)
c
->
arr
(
env
,
[
b
])
[
c
]
mapAC
n
farr
=
go
1
where
go
i
|
i
==
succ
n
=
arr
(
\
(
_env
,
[]
)
->
[]
)
|
otherwise
=
proc
~
(
env
,
b
:
bs
)
->
do
c
<-
farr
-<
(
env
,
b
)
cs
<-
go
(
succ
i
)
-<
(
env
,
bs
)
returnA
-<
c
:
cs
t
::
Arrow
arr
=>
arr
[
a
]
[
a
]
t
=
proc
ys
->
(
|
(
mapAC
3
)
(
\
y
->
returnA
-<
y
)
|
)
ys
testsuite/tests/ghc-regress/arrows/should_compile/all.T
View file @
5aab5caa
...
...
@@ -15,3 +15,4 @@ test('arrowlet1', normal, compile, [''])
test
('
arrowrec1
',
normal
,
compile
,
[''])
test
('
arrowpat
',
normal
,
compile
,
[''])
test
('
T3964
',
normal
,
compile
,
[''])
test
('
T5283
',
normal
,
compile
,
[''])
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