codeeeeeNOT
codeeeeeNOT

Reputation: 133

loading file in 98 Hugs

I am using Hugs 98 and I am trying to load a file like this

:load insert.hs

and keeps saying

I am new to Haskell

what am I doing wrong?

Upvotes: 0

Views: 1780

Answers (1)

yatima2975
yatima2975

Reputation: 6610

Try entering :! dir (if you're on Windows) or :! pwd; ls (on Linux) at the Hugs prompt: that will show you the current directory and its contents - it should have 'insert.hs' in it.

If that's not the case, do :cd <location of insert.hs> and you should be able to :load insert.hs after that.

But like dsign said in the comments, consider upgrading to GHC - Hugs is more than 6 years out of date!

Upvotes: 4

Related Questions