@@ -593,15 +593,6 @@ mkHtmlCore ServerEnv{serverBaseURI, serverBlobStore}
593593 pkgdesc = flattenPackageDescription $ pkgDesc pkg
594594
595595 prefInfo <- queryGetPreferredInfo pkgname
596-
597- -- let findLastDocVer [] = pure Nothing
598- -- findLastDocVer (pkg':pkgs') = do
599- -- hasDoc <- queryHasDocumentation documentationFeature (pkgInfoId pkg')
600- -- let status = getVersionStatus prefInfo (packageVersion pkg')
601- -- if hasDoc && status /= DeprecatedVersion
602- -- then pure (Just (packageVersion pkg', status))
603- -- else findLastDocVer pkgs'
604-
605596 distributions <- queryPackageStatus pkgname
606597 totalDown <- cmFind pkgname `liftM` totalPackageDownloads
607598 recentDown <- cmFind pkgname `liftM` recentPackageDownloads
@@ -614,7 +605,7 @@ mkHtmlCore ServerEnv{serverBaseURI, serverBlobStore}
614605 deprs <- queryGetDeprecatedFor pkgname
615606 mreadme <- makeReadme render
616607 hasDocs <- queryHasDocumentation documentationFeature realpkg
617- lastVerWithDoc<- findLastVerWithDoc (queryHasDocumentation documentationFeature) prefInfo ( reverse pkgs)
608+ lastVerWithDoc<- findLastVerWithDoc (queryHasDocumentation documentationFeature) prefInfo pkgs
618609 rptStats <- queryLastReportStats reportsFeature realpkg
619610 candidates <- lookupCandidateName pkgname
620611 buildStatus <- renderBuildStatus
0 commit comments