List comprehensions

Martin Norbäck d95mback@dtek.chalmers.se
30 Jan 2003 12:10:03 +0100


tor 2003-01-30 klockan 11.41 skrev Rijk J. C. van Haaften:
> Hello,
> 
> Recently, I came accross this
> expression:
> [ x + y | x <- xs | y <- ys ]
> 
> As far as I can see (Haskell Report),
> this is not allowed by the haskell 98
> standard. So I assume it to be an ex-
> tension. Where can I find information
> about this?

This is an extension present in the GHC compiler:
http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#PARALLEL-LIST-COMPREHENSIONS

Regards,

	Martin

-- 
Martin Norbäck          d95mback@dtek.chalmers.se              
Kapplandsgatan 40       +46 (0)708 26 33 60                    
S-414 78  GÖTEBORG      http://www.dtek.chalmers.se/~d95mback/
SWEDEN                  OpenPGP ID: 3FA8580B