main = interact nextGreatestFib; nextGreatestFib x = show(x) nextFib :: xs => xs -> [Int]nextFib xs.length < 2 xs : 1nextFib xs.length >= 2 xs : last(xs) + last(init(xs))
1
[1 of 1] Compiling Main ( prog.hs, prog.o ) prog.hs:6:1: Parse error: naked expression at top level Perhaps you intended to use TemplateHaskell
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!