A binary snapshot of GHC, version 2.04, is now available for
Win32(Intel) platforms (Windows95 and NT4).

GHC currently relies on the cygwin32 toolchain to operate under Win32,
and this snapshot brings GHC up-to-date with the current version of
cygwin32, beta18. (It will *not* work with beta17 or earlier, I'm
afraid).

For information on how to download the snapshot etc., appended is a
basic guide for getting started with ghc-2.04 under Win32.

As always, bug reports to [EMAIL PROTECTED]

Enjoy,

--Sigbjorn

[
ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/working/ghc-2.04-win32.HOWTO
]
                             HOWTO-Win32

              Getting started with GHC on Windows95&NT4

This is a step-by-step guide for installing and setting up your
environment to run the Glasgow Haskell Compiler, version 2.04, on an
x86 machine equipped with Windows95 or NT4.

Requirements:
=============

Hardware:
 * x86 box running Win95/NT4
 * 20M disk space (for compiler+libs, see below for space reqd. by
                   tools) 
 * 16M+ memory

Software:
 * Cygwin32(beta18) toolchain
 * A Perl5 port

Downloading tools:
==================

To install and run GHC, you need to have the following tools installed
on your machine:

* cygwin32 toolchain.

  The compiler depends on the cygwin32 toolchain to operate,
  which provides a more "UNIX-like" view of your Win32 system.
  The cygwin32 tools can be downloaded from the following sites:

    ftp://ftp.cygnus.com/pub/gnu-win32/latest
       (Cygnus Solutions; Mt. View, CA.)
    ftp://sunsite.doc.ic.ac.uk/pub/gnu/cygnus/gnu-win32/
        (Sunsite Northern Europe; Imperial College, London)
    ftp://ftp.crl.go.jp/pub/GNU/cygnus/gnu-win32/
        (CRL, Ministry of Posts and Telecom., Japan)

  This release of GHC was done with beta18 of cygwin32,
  earlier (beta) releases of these tools will probably
  not work (for tedious reasons).

  Refer to ftp://ftp.cygnus.com/pub/gnu-win32/latest/Readme.txt
  for instructions of how to install the toolchain. 

  Disk space required: 25M

* perl5.

  In addition to the cygwin32 tools, you will also need to install
  perl5. GHC will not work with the ActiveWare/Hip port of perl5,
  instead pick up the following perl-5.004pl1 bundle 

    ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/working/perl-5.004pl1.zip

  which is perl-5.004pl1 (plus Chris Faylor's patches & some additional
  tweaks). 

  If you downloaded and installed the perl binary that was suggested for
  GHC, version 2.02, you do not have to install perl again. (The above
  bundle contains a complete perl5 install tree though, hence a lot more
  useful from a perl programming point-of-view.)

  I suggest unpacking the perl bundle in /usr/local/, *and* add
  /usr/local/bin to your PATH. 

  Disk space required: 6.25M

Downloading GHC
===============

OK, the main course. You can either download GHC-2.04 via the web
front-end

  ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/README.html

by picking the Win32 option under the 2.04 heading. Or, if
you prefer the more direct route, download

 
ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/working/ghc-2.04-i386-unknown-cygwin32.tar.gz

- If you need to download the above in more digestible pieces,
  a split distribution is also available. Pick up the following
  four pieces

 
ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/SPLIT-DISTRIB/ghc-2.04-i386-unknown-cygwin32/xaa
 
ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/SPLIT-DISTRIB/ghc-2.04-i386-unknown-cygwin32/xab
 
ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/SPLIT-DISTRIB/ghc-2.04-i386-unknown-cygwin32/xac
 
ftp://ftp.dcs.gla.ac.uk/pub/haskell/glasgow/SPLIT-DISTRIB/ghc-2.04-i386-unknown-cygwin32/xad

 Once transferred onto your box, assemble the distribution from
 within a DOS shell:

   copy /b xaa + xab + xac + xad ghc-2.04-i386-unknown-cygwin32.tar.gz
   del x*.*

- Unpack the archive (using either WinZip or tar/gzip if
  you've got cygwin32 set up by now) in a suitable spot,
  let's call this <wherever>.

- Fire up `bash' and do
    
     bash$ cd <wherever>/ghc-2.04
     bash$ ./configure

  this should create a Makefile for you, have a look at its
  contents to see if you agree.

- Run `make in-place' if you want to start using GHC from
  where you've unpacked it, or, if you want to do a
  proper install, type `make install'. Augment your PATH
  to include the directory containing the ghc binaries.

- Assuming all the above steps went well, you should now have
  a working copy of GHC, version 2.04. To test it, create a
  file Test.hs containing the following one-liner:

   main = print "Hello, there!"

  Compile it with <wherever you've got ghc>/ghc-2.04 -o main Test.hs,
  and try running the resulting binary. If it worked; smile - if it
  didn't; proceed to the next section..

Reporting bugs/feedback
=======================

Bug reports/suggestions for improvement to the installation procedure/setup
(as well as other GHC related troubles you're experiencing, of course),
gratefully received at [EMAIL PROTECTED] . See the
user's guide for more info on what information to supply with a bug
report.

More information
================

The binary snapshot comes with installation and user manuals
in various formats (dvi, html and info - see toplevel directory). More
information on GHC is available via its home page
 
  http://www.dcs.gla.ac.uk/fp/software/ghc/

Reply via email to