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

Commit d2b97c8

Browse files
author
Gershom
committed
tweaks to website contents including new sha for source tarball
1 parent b5e8f18 commit d2b97c8

File tree

3 files changed

+43
-9
lines changed

3 files changed

+43
-9
lines changed

hptool/src/ReleaseFiles.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ releaseFiles =
8282
, win True i386 "download/8.0.1/HaskellPlatform-8.0.1-full-i386-setup.exe" $ sha256 "88a01bfa5b94f4c6f4d9959fc1b711acb944799b6090a1d8004a0f42f320ee9b"
8383
, win False x86_64 "download/8.0.1/HaskellPlatform-8.0.1-minimal-x86_64-setup.exe" $ sha256 "8115610a1042c744e1e652b0db97f8d127b5527aef1dc1b1674d80b0d8575c7e"
8484
, win True x86_64 "download/8.0.1/HaskellPlatform-8.0.1-full-x86_64-setup.exe" $ sha256 "0a22f668e6c03077c8f3605846f3e0c5eea4e12e0cc0595ddf7bc0494cf65200"
85-
, src True "download/8.0.1/haskell-platform-8.0.1.tar.gz" $ sha256 "1b07f6cbb77ee722af2865c11ed16444663b75e6562c7cc1a9bb6dc06891a0e0"
85+
, src True "download/8.0.1/haskell-platform-8.0.1.tar.gz" $ sha256 "38af99a9ae4afce56df75a753a19e7a4986bfbc8ce22f93b8308b5ab9e5a19c6"
8686
])
8787
, ("7.10.3", dec 2015,
8888
[ lin True x86_64 "download/7.10.3/haskell-platform-7.10.3-unknown-posix-x86_64.tar.gz" $ sha256 "d7dcc6bd7f1ce5b1d4ca59fc0549246ba0c40f73e5ff917ae2ae2753ea758d81"

hptool/src/Website.hs

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import ReleaseFiles
1818
import Templates
1919
import Types
2020

21+
2122
websiteRules :: FilePath -> Rules ()
2223
websiteRules templateSite = do
2324
websiteDir %/> \dst -> do
@@ -143,9 +144,15 @@ extendedCtx name = mkStrContext ctx
143144
ctx "components" = mapListStrContext pCtx packages
144145
ctx _ = MuNothing
145146

146-
packages = sortOnLower . nub . map pkgName . concat $
147-
map (map snd . relIncludes)
148-
releasesNewToOld
147+
packagesAfter = concat .
148+
map (map snd . relIncludes) $
149+
releasesNewToOldSinceSplit
150+
151+
packagesPrior = concat .
152+
map (packagesByIncludeFilter (\i -> all ($i) [not . isGhc, isLib]) True) $
153+
releasesNewToOldBeforeSplit
154+
155+
packages = sortOnLower . nub . map pkgName $ packagesAfter ++ packagesPrior
149156

150157
sortOnLower = map snd . sort . map (\s -> (map toLower s, s))
151158

@@ -181,5 +188,11 @@ releasesNewToOld = reverse releases
181188
releasesNewToOldSinceSplit :: [Release]
182189
releasesNewToOldSinceSplit = takeWhile p releasesNewToOld
183190
where p rel = case packagesByIncludeFilter (\i -> all ($i) [isGhc, not . isLib, not . isTool]) False rel of
184-
[ghcPkg] -> take 1 (versionBranch $ pkgVersion ghcPkg) == [8]
191+
[ghcPkg] -> head (versionBranch $ pkgVersion ghcPkg) >= 8
192+
_ -> False
193+
194+
releasesNewToOldBeforeSplit :: [Release]
195+
releasesNewToOldBeforeSplit = takeWhile p $ reverse releasesNewToOld
196+
where p rel = case packagesByIncludeFilter (\i -> all ($i) [isGhc, not . isLib, not . isTool]) False rel of
197+
[ghcPkg] -> head (versionBranch $ pkgVersion ghcPkg) < 8
185198
_ -> False

website/templates/plan-a/download-os-sections.html.mu

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
<div class="container">
33
<h2 id="get-started">Let's get started</h2>
4-
<b>Note that as of 8.0.1 there are two download
4+
<p><b>Note:</b> as of 8.0.1 there are two download
55
options available &mdash; minimal and full. The minimal
66
option is currently the generally recommended
77
one. It does not include any additional global
@@ -12,7 +12,14 @@
1212
"classic" platform behavior with a broader set of
1313
preinstalled libraries, and especially serves those
1414
well who want full-featured installers in situations
15-
where network connectivity should not be taken for granted.</p>
15+
where network connectivity should not be taken for
16+
granted.</p>
17+
<p>Note also: the stack tool has been evolving
18+
relatively rapidly. Users who wish to ensure they are
19+
running the latest version may want to consider running "stack
20+
update" and ensuring the
21+
proper <a href="http://docs.haskellstack.org/en/stable/install_and_upgrade/#path">path</a>
22+
for stack-installed binaries is in their environment.
1623
</div>
1724

1825

@@ -195,14 +202,28 @@
195202
{{/isWindows}} {{/files}} {{/current}}
196203
</ul>
197204
</div>
198-
</div>
199205
</li>
200206
<li>
201207
<div class="step-number">2</div>
202208
<div class="step-body">Run the installer and follow the instructions.</div>
203209
</li>
204-
<li>
210+
<li>
205211
<div class="step-number">3</div>
212+
<div class="step-body">
213+
Modify your cabal config
214+
file (you can verify the
215+
location by running "cabal
216+
user-config init") to
217+
contain the following lines:
218+
<pre>
219+
extra-prog-path: C:\Program Files\Haskell Platform\8.0.1\msys\usr\bin
220+
extra-lib-dirs: C:\Program Files\Haskell Platform\8.0.1\mingw\lib
221+
extra-include-dirs: C:\Program Files\Haskell Platform\8.0.1\mingw\include
222+
</pre>
223+
</div>
224+
</li>
225+
<li>
226+
<div class="step-number">4</div>
206227
<div class="step-body">Start WinGHCi from the Start menu and have fun!</div>
207228
</li>
208229
</ol>

0 commit comments

Comments
 (0)