fork download
  1.  
  2. naturales :: [Int]
  3. naturales = [1..]
  4.  
  5. main :: IO ()
  6. main = print (take 10 naturales)
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
[1,2,3,4,5,6,7,8,9,10]