mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-18 13:55:48 +01:00
stackage-setup prerelease download page #87
This commit is contained in:
parent
1117ca93c9
commit
2f1fb53537
@ -12,6 +12,7 @@ executableFor Win32 = StackageWindowsExecutable
|
|||||||
executableFor Win64 = StackageWindowsExecutable
|
executableFor Win64 = StackageWindowsExecutable
|
||||||
executableFor _ = StackageUnixExecutable
|
executableFor _ = StackageUnixExecutable
|
||||||
|
|
||||||
|
-- TODO: link to s3
|
||||||
executableLink :: SupportedArch -> StackageExecutable -> Route App
|
executableLink :: SupportedArch -> StackageExecutable -> Route App
|
||||||
executableLink arch exe =
|
executableLink arch exe =
|
||||||
StaticR $ StaticRoute ["setup", toPathPiece arch, toPathPiece exe] []
|
StaticR $ StaticRoute ["setup", toPathPiece arch, toPathPiece exe] []
|
||||||
@ -21,6 +22,10 @@ downloadCandidates =
|
|||||||
map (\arch -> (arch, executableFor arch))
|
map (\arch -> (arch, executableFor arch))
|
||||||
[minBound .. maxBound]
|
[minBound .. maxBound]
|
||||||
|
|
||||||
|
currentlySupported :: SupportedArch -> Bool
|
||||||
|
currentlySupported Linux64 = True
|
||||||
|
currentlySupported _ = False
|
||||||
|
|
||||||
getDownloadR :: Handler Html
|
getDownloadR :: Handler Html
|
||||||
getDownloadR = defaultLayout $ do
|
getDownloadR = defaultLayout $ do
|
||||||
$(widgetFile "download")
|
$(widgetFile "download")
|
||||||
|
|||||||
@ -1,5 +1,21 @@
|
|||||||
|
<h1>Warning: pre-release
|
||||||
|
|
||||||
|
<p>The following executable is considered experimental.
|
||||||
|
<p>More operating systems and architectures will be supported upon official release.
|
||||||
|
|
||||||
|
<h1>Download
|
||||||
$forall (arch, exe) <- downloadCandidates
|
$forall (arch, exe) <- downloadCandidates
|
||||||
<ul .downloads>
|
<ul .downloads>
|
||||||
<li>
|
$if currentlySupported arch
|
||||||
<a href=@{executableLink arch exe}>
|
<li>
|
||||||
#{toPathPiece arch}: #{toPathPiece exe}
|
#{toPathPiece arch}:
|
||||||
|
<a href=@{executableLink arch exe}>
|
||||||
|
#{toPathPiece exe}
|
||||||
|
|
||||||
|
<h1>What is stackage-setup?
|
||||||
|
|
||||||
|
<p>The stackage-setup executable is an easy way to download and set up the basic executables needed for developing Haskell.
|
||||||
|
<p>You can find these executables in:
|
||||||
|
<code>~/.stackage/environment/$group/$group-$version/bin/
|
||||||
|
<p>For example, ghc, ghc-pkg, haddock, etc for ghc-7.8.4 are installed here:
|
||||||
|
<code>~/.stackage/environment/ghc/ghc-7.8.4/bin/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user