mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-11 19:58:28 +01:00
Install page redirects to haskell-lang get-started
This commit is contained in:
parent
a765bc95f3
commit
aa0fe190ac
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user