mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-31 21:30:25 +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
|
mcount = spoon $ limitedLength 0 rawRes
|
||||||
limitedLength x [] = Just x
|
limitedLength x [] = Just x
|
||||||
limitedLength x (_:rest)
|
limitedLength x (_:rest)
|
||||||
| x >= 100 = Nothing
|
| x >= 20 = Nothing
|
||||||
| otherwise = limitedLength (x + 1) rest
|
| otherwise = limitedLength (x + 1) rest
|
||||||
rendered = pack $ Hoogle.showTagHTML $ Hoogle.renderQuery query''
|
rendered = pack $ Hoogle.showTagHTML $ Hoogle.renderQuery query''
|
||||||
return $ case (,) <$> mres <*> mcount of
|
return $ case (,) <$> mres <*> mcount of
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user