File: ParallelListComp.hs

package info (click to toggle)
haskell-doctest 0.22.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 660 kB
  • sloc: haskell: 3,148; makefile: 5; ansic: 3
file content (5 lines) | stat: -rw-r--r-- 120 bytes parent folder | download | duplicates (6)
1
2
3
4
5
{-# LANGUAGE ParallelListComp #-}
module ParallelListComp where

foo :: [Int]
foo = [x+y | x <- [1,2,3] | y <- [4,5,6]]