[Haskell-beginners] Re: ghc installation on mac osx 10.4.11(intel), Xcode 2.4?

7stud bbxx789_05ss at yahoo.com
Tue Feb 24 15:16:13 EST 2009


Thomas Davie <tom.davie <at> gmail.com> writes:

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

I did some more digging around at haskell.org, and I
discovered a download for 6.8.2 for mac osx 10.4, so
I downloaded and installed that.  Will that be ok?

For anyone who can't figure out how to install
ghc, cd into the ghc folder that is created when you
unzip the download.  Then read the INSTALL file.
To install, I did the following:

$ ./configure

$ sudo make install

At the end of which, I got the message:
-----------
Installation of ghc-6.8.2 was successful.

To use, add /usr/local/bin to your PATH.

Warning: this binary distribution does NOT contain documentation!
-----------


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

I would agree.  :)







More information about the Beginners mailing list