KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following code: fib n | n == 0 = 0 | n == 1 = 1 | n > 1 = fib (n-1) + fib (n-2) print fib 5 And for some reason, it's throwing an error: [1 of 1] Compiling Main ( test.hs, test.o ) test.hs:8:1: Parse error: naked expression at top level What's going on?
Tags (comma-separated)
Save Edits
Cancel