How can you change the path where Hugs98 (Haskell) looks for Module and Libraries?

332 Views Asked by At

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?

1

There are 1 best solutions below

3
On

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.