Closed ndmitchell closed 5 years ago
See https://github.com/ndmitchell/hoogle/blob/master/src/Action/Search.hs#L152-L153 - yes - you can assume the database is available.
Probably add a new helper like ===~
for in the top-5, or an actual function top 5
to add new types of search.
What is the best way to run tests like "ensure the first hit for
(a -> b) -> Maybe a -> Maybe b
isfmap
? Can we assume that the db fromhoogle generate
is available during tests?