[Hugs-users] '=' and ':' generate errors
Neil Mitchell
ndmitchell at gmail.com
Sat Mar 24 11:56:51 EDT 2007
Hi
> Is Hugs98 broken on my system?
No
> test :: Int
> ERROR - Undefined variable "test"
This defines the name test to be an Int, but what is test? Have you
introduced it earlier? Try instead:
> 1 :: Int
> size = 12+13
> ERROR - Syntax error in input (unexpected `=')
You can't do that at the hugs prompt, but you can in a file. In a
command prompt perhaps:
let size = 12+13 in size
Thanks
Neil
More information about the Hugs-Users
mailing list