Skip to content
GitLab
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
6b3261bb
Commit
6b3261bb
authored
Aug 31, 2001
by
simonmar
Browse files
[project @ 2001-08-31 11:29:04 by simonmar]
Update test after the behaviour of scan{r,l}1 changed
parent
a3140fb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/lib/should_run/list001.hs
View file @
6b3261bb
...
...
@@ -45,7 +45,7 @@ main = do
-- scanl1
print
(
scanl1
(
+
)
[
1
..
10
])
catch
(
print
(
scanl1
(
+
)
[]
::
[
Int
])
)
(
\
_
->
putStr
"scanl1 []
\n
"
)
print
(
scanl1
(
+
)
[]
::
[
Int
])
-- foldr1
print
(
foldr1
(
+
)
[
1
..
10
])
...
...
@@ -56,7 +56,7 @@ main = do
-- scanr1
print
(
scanr1
(
+
)
[
1
..
10
])
catch
(
print
(
scanr1
(
+
)
[]
::
[
Int
])
)
(
\
_
->
putStr
"scanr1 []
\n
"
)
print
(
scanr1
(
+
)
[]
::
[
Int
])
-- iterate
print
(
take
10
(
cycle
(
take
4
(
iterate
(
+
1
)
1
))))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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