fibs = 0 : 1 : zipWith (+) fibs (tail fibs) main = print $ take 10 fibs
Standard input is empty
[0,1,1,2,3,5,8,13,21,34]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!