[Haskell-beginners] main

John Moore john.moore54 at gmail.com
Sat Oct 3 15:07:50 EDT 2009


Hi, 
    I must be doing something wrong when I run a program it comes up on the
screen as OK module loaded Main
*Main>
But it will not do what I program to do. What do I enter after *main> I
tried putting in the arguments but ot just returns the arguments.
For example:

signum x | x < 0 = -1
	  | x == 0 = 0
              | x > 0 = 1


Enter 5 it returns 5

What have I missed?

Regards

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20091003/914ab9c2/attachment.html


More information about the Beginners mailing list