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
nofib
Commits
b43b47d6
Commit
b43b47d6
authored
May 19, 1997
by
sof
Browse files
[project @ 1997-05-19 00:32:01 by sof]
List comprehensions with do
parent
2335213f
Changes
2
Hide whitespace changes
Inline
Side-by-side
GHC_ONLY/frontend006/Main.hs
0 → 100644
View file @
b43b47d6
{- Check that list comprehensions can be written
in do-notation. This actually broke 2.02, with
a pattern match failure in dsListComp!
-}
module
Main
where
main
=
putStrLn
(
show
theList
)
theList
=
do
x
<-
[
1
..
3
]
y
<-
[
1
..
3
]
return
(
x
,
y
)
GHC_ONLY/frontend006/Makefile
0 → 100644
View file @
b43b47d6
TOP
=
../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/target.mk
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