Need help

Sigbjorn Finne sof@galconn.com
Thu, 19 Jul 2001 09:39:13 -0700


Hi there,

sounds like you're having a hard time getting Hugs to behave
the way you want it to. To make sure that we're not
overlooking anything, could you go through the following
steps & let us know what happened?

1. create the file Test.hs containing the following

module Test where

test = "Test.test"

2. In the folder you saved Test.hs, try double-clicking
    on Test.hs. All being well, the Hugs interpreter should
    start up & load in Test.hs -- try typing 'test' at the
    prompt.

3. If double-clicking on Test.hs didn't work, start up the
    Hugs interpreter as you normally do. Assuming you saved
    Test.hs in folder "c:\source\haskell", then do

       Prelude> :cd c:\source\haskell
       Prelude> :l Test.hs

    All being well, Test.hs should then load. Try typing 'test' at
    the prompt.

4. If the Hugs distribution you're using also comes with WinHugs, try
    starting it up instead. Load up Test.hs by selecting File-> Open &
    then navigating to the folder containing Test.hs. Try typing 'test' at
    the prompt after you've selected Test.hs and hit the OK button.

5. If none of the above attempts worked out, let us (==
hugs-bugs@haskell.org)
    know exactly what went wrong & we'll try to help out some more.


hope that helps,
--sigbjorn

----- Original Message -----
From: "Shirley Widyaningsih" <shirley_widyaningsih@yahoo.com>
To: <hugs-bugs@haskell.org>
Sent: Monday, July 16, 2001 20:23
Subject: Need help


> Dear sir,
>
>  I'm a beginner in Haskell, i already bought a book
> about Haskell but unfortunetly it doesn't run well. My
> Haskell version is 1.4 and the prompt sign is
> prelude>, when i set the interpreter option, i made
> some mistake <i think>, i don't know how come my
> search pat setting become
> -P" {Hugs}\\lib;{Hugs}\\lib\\hugs;{hugs}\\lib\\exts;
> {hugs}\\lib\\win 32 "
>
> before i change the setting of the interpreter,when i
> type :? or PutStr "Hello" it run well, except when i
> type square 2, there're an error message
> Error- unable to defined "square"
> But now after i change the interpreter option at
> search path, every command that i typed will display
> an error message
> eg:
> Prelude> putStr "Hello"
> Reading file "assessed":
> ERROR assessed - Unable to open file "assessed"
>
> So what should i do ? i already try to change my
> search path to the current setting.
> My current search path setting is:
> -P"{Hugs}\\lib;{Hugs}\\lib\\hugs;{Hugs}\\lib\\win 32"
>
> I alredy try to ctrl+c at the current setting and then
> ctrl+v at the search path setting but when i type :s,
> my search path setting will become:
> -P" {Hugs}\\lib;{Hugs}\\lib\\hugs;{hugs}\\lib\\exts;
> {hugs}\\lib\\win 32 " in my terminal display screen.
> And from that i know, that when i type \ on the search
> path, it'll display \\ on the current setting display
> <after i type :s on the terminal display>.
>
> I will give you all my current setting to make it
> clear.
> Current settings: +fewuiA -stgl.qQkR -h250000 -p%s>
> -r$$ -c40
> Search path     : -P"
> {Hugs}\\lib;{Hugs}\\lib\\hugs;{Hugs}\\lib\\exts;{Hugs}\\li
> b\\win32 "
> Editor setting  : -EC:\WINDOWS\notepad.exe
> Preprocessor    : -F
> Compatibility   : Haskell 98 (+98)
> Prelude>
>
> Please, could you help me ?
> Thanks and looking forward for your answer.
>
>
> Sincerely yours,
>
>
>
>
> Shirley
>
>