Reputation: 133
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
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