Install page redirects to haskell-lang get-started

This commit is contained in:
Michael Snoyman 2016-11-20 12:15:01 +02:00
parent a765bc95f3
commit aa0fe190ac
2 changed files with 2 additions and 4 deletions

View File

@ -13,7 +13,6 @@ import Data.Yaml
data WebsiteContent = WebsiteContent
{ wcHomepage :: !Html
, wcAuthors :: !Html
, wcInstall :: !Html
, wcOlderReleases :: !Html
, wcGhcLinks :: !GhcLinks
, wcStackReleases :: ![StackRelease]
@ -23,7 +22,6 @@ loadWebsiteContent :: FilePath -> IO WebsiteContent
loadWebsiteContent dir = do
wcHomepage <- readHtml "homepage.html"
wcAuthors <- readHtml "authors.html"
wcInstall <- readMarkdown "install.md"
wcOlderReleases <- readHtml "older-releases.html" `catchIO`
\_ -> readMarkdown "older-releases.md"
wcGhcLinks <- readGhcLinks $ dir </> "stackage-cli"

View File

@ -52,8 +52,8 @@ snapshotsPerPage = 8
getAuthorsR :: Handler Html
getAuthorsR = contentHelper "Library Authors" wcAuthors
getInstallR :: Handler Html
getInstallR = contentHelper "Haskell Installation Instructions" wcInstall
getInstallR :: Handler ()
getInstallR = redirect ("https://haskell-lang.org/get-started" :: Text)
getOlderReleasesR :: Handler Html
getOlderReleasesR = contentHelper "Older Releases" wcOlderReleases