File size: 195 Bytes
9425aed | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | module Main where
data Foo = Foo { id :: Int, name :: String } deriving (Show)
test :: Int -> [Foo]
test n =
[ Foo
{ id = i
, name = "x"
}
| i <- [0..n-1]
]
main = return ()
|