mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
14 lines
350 B
Haskell
14 lines
350 B
Haskell
module Handler.PackageList where
|
|
|
|
import Import
|
|
import Stackage.Database
|
|
|
|
|
|
-- FIXME maybe just redirect to the LTS or nightly package list
|
|
getPackageListR :: Handler Html
|
|
getPackageListR = defaultLayout $ do
|
|
setTitle "Package list"
|
|
packages <- getAllPackages
|
|
$(widgetFile "package-list")
|
|
where strip x = fromMaybe x (stripSuffix "." x)
|