Force less of the Hoogle results #172

This commit is contained in:
Michael Snoyman 2016-05-08 11:33:53 +03:00
parent 9d0d715894
commit 4b953f8585

View File

@ -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