WinHugs extremely basic newbie question
"Risto Rangel Kuoppa" <[email protected]> Thu, 6 Sep 2007 07:13:46 -0500
| Newsgroups | gmane.comp.lang.haskell.hugs.user |
|---|---|
| Message-ID | <4358854CED4B4D129D9046E63B9C03E4@M8> |
Hello everyone, I am having troubles to start using WinHugs. I downloaded it, installed, and run it. Yet I am unable to run something else than just evaluating expressions. For example, I am trying to define my first data type with: Hugs> data Tipo = Cruz | Circulo deriving Eq But all I get is: ERROR - Syntax error in expression (unexpected keyword "data") Hugs> I think that I must load some module or library but when I make: Hugs> :load "C:\\Program Files\\WinHugs\\packages\\hugsbase\\Hugs\\Prelude.hs" I get: ERROR file:.\Prelude.hs - Module "Hugs.Prelude" already loaded Hugs.Prelude> And I cannot find any Data.hs (Does it actually exist?) anywhere. Could someone help me with this please? I have already spent several hours trying to figure it out. All I want is to start testing the tutorials and learn Haskell but I am missing something to run them with WinHugs. Thanks in advance, Risto