Commit b43b47d6 authored by sof's avatar sof
Browse files

[project @ 1997-05-19 00:32:01 by sof]

List comprehensions with do
parent 2335213f
{- 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)
TOP = ../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/target.mk
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment