I can execute simply operations, like
Hugs> 2+2
for instance. Or any operation, for that matter.
But when it comes to actually trying to define a function, e.g:
occurs :: Eq a => a -> [a] -> Bool
occurs x l = x `elem` l
Then I get the message:
ERROR - Syntax error in input (unexpected `=')
I also get unexpected `::'
in other cases. I'm using WinHugs.