hugs

Differences Between Hugs, Yhc and GHCi

There are differences between Hugs, Yhc and GHCi? If there are differences, What are they? ...

Why must named functions be in a separate file in hugs?

In Haskell in 5 steps the factorial function is defined as follows: let fac n = if n == 0 then 1 else n * fac (n-1) But for hugs, it says that fac needs to be in fac.h. Can anyone explain why this is the case - missing the ability to define named functions seems like a massive limitation for an interpreter? ...

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

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...

"Instance of Integral Float required" error

The file with following function: type Point = (Float, Float) type Circle = (Float, Float, Float) getCircle :: Point -> Point -> Point -> Circle getCircle (a, b) (c, d) (e, f) = (x, y, r) where x = ((a^2+b^2)*(f-d) + (c^2+d^2)*(b-f) + (e^2+f^2)*(d-b)) `div` (a*(f-d)+c*(b-f)+e*(d-b)) `div` 2 y = ((a^2+b^2)*(e-c) + (c^...