diff --git a/Handler/Download.hs b/Handler/Download.hs index 86c87aa..770d609 100644 --- a/Handler/Download.hs +++ b/Handler/Download.hs @@ -12,6 +12,7 @@ executableFor Win32 = StackageWindowsExecutable executableFor Win64 = StackageWindowsExecutable executableFor _ = StackageUnixExecutable +-- TODO: link to s3 executableLink :: SupportedArch -> StackageExecutable -> Route App executableLink arch exe = StaticR $ StaticRoute ["setup", toPathPiece arch, toPathPiece exe] [] @@ -21,6 +22,10 @@ downloadCandidates = map (\arch -> (arch, executableFor arch)) [minBound .. maxBound] +currentlySupported :: SupportedArch -> Bool +currentlySupported Linux64 = True +currentlySupported _ = False + getDownloadR :: Handler Html getDownloadR = defaultLayout $ do $(widgetFile "download") diff --git a/templates/download.hamlet b/templates/download.hamlet index 25585e4..dc0a599 100644 --- a/templates/download.hamlet +++ b/templates/download.hamlet @@ -1,5 +1,21 @@ +
The following executable is considered experimental. +
More operating systems and architectures will be supported upon official release. + +
The stackage-setup executable is an easy way to download and set up the basic executables needed for developing Haskell. +
You can find these executables in:
+ For example, ghc, ghc-pkg, haddock, etc for ghc-7.8.4 are installed here:
+~/.stackage/environment/$group/$group-$version/bin/
+~/.stackage/environment/ghc/ghc-7.8.4/bin/