Re: '=' and ':' generate errors
"Neil Mitchell" <[email protected]> Sat, 24 Mar 2007 15:56:51 +0000
| Newsgroups | gmane.comp.lang.haskell.hugs.user |
|---|---|
| Message-ID | <[email protected]> |
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