mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-11 19:58:28 +01:00
Force less of the Hoogle results #172
This commit is contained in:
parent
9d0d715894
commit
4b953f8585
@ -136,7 +136,7 @@ runHoogleQuery heDatabase HoogleQueryInput {..} =
|
||||
mcount = spoon $ limitedLength 0 rawRes
|
||||
limitedLength x [] = Just x
|
||||
limitedLength x (_:rest)
|
||||
| x >= 100 = Nothing
|
||||
| x >= 20 = Nothing
|
||||
| otherwise = limitedLength (x + 1) rest
|
||||
rendered = pack $ Hoogle.showTagHTML $ Hoogle.renderQuery query''
|
||||
return $ case (,) <$> mres <*> mcount of
|
||||
|
||||
Loading…
Reference in New Issue
Block a user