You have to enter a script into a file and load it into the interpreter. ghci will let you type

let abs x = if x < 0 then -x else x

but it won't let you enter the type information. WinHugs doesn't allow this at all.