Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit b5e8f18

Browse files
author
Gershom
committed
Merge branch 'master' of github.com:haskell/haskell-platform
2 parents 78d92fb + 08d7925 commit b5e8f18

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

README

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ foundation on which to base production software.
1212
While end-users _can_ build the platform themselves, it is generally recommended,
1313
if possible, to use the prebuilt binaries available from https://www.haskell.org/platform/
1414

15+
The platform distribution and tooling are more intended instead for those wishing to package a platform installer for use by others.
16+
1517
DISTRIBUTION
1618
------------
1719
The platform comes in several forms:
@@ -29,7 +31,8 @@ Development usually happens in other branches.
2931
includes the sources of the packages that make up the platform, and excludes
3032
some of the ancillary things in the source repo. You can use this to build
3133
the platform without access to hackage or even an internet connection. You still
32-
need a GHC bindist.
34+
need a GHC bindist, as well as cabal and stack binaries, either built from source or
35+
available from their respective websites.
3336

3437
*installer* - For Windows and OS X, the platform is distributed as a standard
3538
installer for the operating system. It contains a fully built version of the
@@ -55,14 +58,19 @@ You need the platform build files, either from the *source repo* or the
5558
*source tarball*. Build instructions are the same for either.
5659

5760
You need a GHC bindist that matches the OS you are compiling on. It must also
58-
match the GHC version used by the platform, currently 7.10.3. You can get this
59-
from:
60-
https://www.haskell.org/ghc/download_ghc_7_10_3
61+
match the GHC version used by the platform, which you can find by looking in the Releases*.hs files.
62+
63+
You can get the bindists from
64+
65+
https://www.haskell.org/ghc/download
6166

6267
The machine doing the build needs to have a working Haskell setup: Usually,
63-
GHC (7.4 or later), Cabal (1.16 or later), and haddock and HsColour must be on
68+
GHC (7.4 or later), Cabal (1.24 or later), and haddock and HsColour must be on
6469
the $PATH.
6570

71+
You also need a proper version of the cabal and stack binaries to be bundled.
72+
73+
You can build a cabal directly from hackage and get a stack from http://docs.haskellstack.org
6674

6775
BUILDING
6876
--------
@@ -73,20 +81,24 @@ installer packages.
7381

7482
In either the source repo or unpacked source tarball, simply run this:
7583

76-
./platform.sh $PATH_TO_GHC_BINDIST_TARBALL
84+
./platform.sh $PATH_TO_GHC_BINDIST_TARBALL $PATH_TO_CABAL_EXECUTABLE $PATH_TO_STACK_EXECUTABLE
7785

7886
This will build the hptool itself, and then use that tool to build first the
7987
platform source tarball, and finally the hermetic build of all the platform
8088
packages.
8189

90+
By default this now builds a "minimal" installer that does not install libraries beyond core. To
91+
build a "full" installer with a broader range of libraries pre-installed in the global store, pass
92+
a "-f" option.
93+
8294
If you are building for a Posix like system (Linux, or BSD), then you can add
8395
the command line option --prefix to specify where, on the target system the
8496
tree of built things will be placed. It defaults to "/usr/local/haskell". The
8597
build will include another directory under that named "ghc-x.y.z-arch" and
8698
everything will be installed under there.
8799

88-
Adding -j<n> (no space between the j and the number of cores) to the build invocation will enable building on multiple cores at
89-
once.
100+
Adding -j<n> (no space between the j and the number of cores) to the build invocation
101+
will enable building on multiple cores at once.
90102

91103

92104
INSTALLATION

0 commit comments

Comments
 (0)