
24 Feb
2009
24 Feb
'09
2:46 a.m.
On 24 Feb 2009, at 08:21, 7stud wrote:
Hi,
I just bought Real World Haskell, and I'm trying to get the ghc compiler set up. The installer for the latest version of ghc, 6.10.1, is for Leopard(osx 10.5). What should I install for osx 10.4.11(Tiger)?
Try using the version in MacPorts.
Also, a question about "Beware of enumerating floating point numbers" on p. 11. The book doesn't explain what it means to enumerate floating point numbers without a step, so when it says to beware of the non-intuitive behavior of:
ghci> [1.0..1.8]
how would a reader know what the intuitive behavior is? Is the step .1, .01, .001? Is there a default step? Who knows?
I'd say that if you can't figure out what it should do, that's pretty non intuitive, no? Bob