[Hugs-users] Re: [Haskell] Hugs Nov2003 X Nov2002

Ross Paterson ross at soi.city.ac.uk
Tue Mar 16 13:36:09 EST 2004


[moved to hugs-users]

On Tue, Mar 16, 2004 at 08:03:55AM -0000, Stenio wrote:
> I was using Hugs November 2002 and the function fromInt works fine,
> but in the version November 2003 the same function doesn´t work. The
> same happens with the functions ord and chr. But in this case I find
> the solution, chr and ord are in the module Char in version November
> 2003 so I have to do : import Char in my Haskell script.

Both these incompatibilities result from the Nov 2003 release being more
strictly compliant with Haskell 98:
- chr and ord are exported by Char, not (any longer) from Prelude.
- fromInt, toInt, etc are no longer exported by the Prelude:
  use fromIntegral instead.


More information about the Hugs-Users mailing list