Re: [Haskell] Hugs Nov2003 X Nov2002
16 Mar
2004
16 Mar
'04
1:36 p.m.
[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.
7965
Age (days ago)
7965
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ross Paterson