views:

46

answers:

1

I have installed Ubuntu as a virtual machine so I could use Hugs98. However, after installing I realised I couldn't use Data.Char and Data.Ratio modules. I had to load them manually with :load /usr/lib/etc . It seems this happens because the modules are not in the place where they should be. Can anyone please tell me how I can change the default path of the modules so I don't have to load them every time?

A: 

According to the Hugs user guide, -P can be used to modify the search path.

However, I would strongly recommend installing GHC, for a much more modern Haskell experience.

Don Stewart
-P doesn't set it to default. It just sets it for one session. It worked once. Now it says it can't find Prelude.hs in that location. How can I change it for good? I can't use GHC because Hugs98 is what I need at university.
Sorin
alias hugs="hugs -P..." perhaps?
Don Stewart
I've done that. It works for some location, but it doesn't set it to default. When I try another location, where the Prelude and most modules are, it says it can't find Hugs.Prelude or Prelude along new path: "{Hugs}/packages/hugsbase/Hugs/*" ignoring it. I installed the Hugs98 version from the Ubuntu software center. What to do, please?
Sorin