This commit is contained in:
drlkf 2026-03-13 22:40:18 +01:00 committed by GitHub
commit f20a1a3038
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,12 +23,7 @@ getHoogleDB name = track "Handler.Hoogle.getHoogleDB" do
liftIO $ appGetHoogleDB app name
getHoogleR :: SnapName -> Handler Html
getHoogleR name0 = track "Handler.Hoogle.getHoogleR" do
let branch =
case name0 of
SNLts _ _ -> LtsBranch
SNNightly _ -> NightlyBranch
name <- newestSnapshot branch >>= maybe notFound return
getHoogleR name = track "Handler.Hoogle.getHoogleR" do
Entity _ snapshot <- lookupSnapshot name >>= maybe notFound return
mquery <- lookupGetParam "q"
mPackageName <- lookupGetParam "package"