File: ParallelListCompClass.hs

package info (click to toggle)
haskell-doctest 0.24.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 708 kB
  • sloc: haskell: 3,428; ansic: 3; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 178 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
{-# LANGUAGE ParallelListComp #-}
module ParallelListCompClass where

class Foo a where
  foo :: a -> [Int]

instance Foo Int where
  foo _ = [x+y | x <- [1,2,3] | y <- [4,5,6]]