I am new to Haskell and programming in general. I am trying to write a lambda function that return a value squared
(\x -> x * x)
this is the code I have written. When i try to compile I get this error Parse error: naked expression at top level Perhaps you intended to use TemplateHaskell
I have googled it I cannot fund a solution
square = \x -> x * x.25is not a string.putStrLn (show (square 5))