[Hugs-users] overloading operators

Alfredo Paz-Valderrama apaz at star.com.pe
Tue Apr 12 23:12:45 EDT 2005


Hello

I am newly in functional programming and haskell too.

I have many question about operator's signature.

If i write this in hugs:

1 / 2

I get 0.5 by answer, but the / operator signature is:

float -> float -> float

1) Why don't fail?

2) 1 and 2 are not integers?

3) can this fact be source of confusions?

--
Alfredo Paz-Valderrama
Sociedad Peruana de Computacion

----------------------------------------------------------------
This mail sent through StarMail: http://www.star.com.pe


More information about the Hugs-Users mailing list