git.iko.soy/typeable/bloodhound
on master help sign in
Fix docs specifying an incorrect terminating condition

https://github.com/bitemyapp/bloodhound/issues/95

commit77d026e491ff06f5e9cd1310a1af8c8398a41b1f authorMHova <mho@sumall.com> dateThu 28 Jan 2016, 09:12 (11 years ago) parentc3df597
1 file changed+2−3
src/Database/Bloodhound/Client.hs+2−3
src/Database/Bloodhound/Client.hs+2−3
@@ -680,9 +680,8 @@ scroll' (Just sid) = do
680680 Right SearchResult {..} -> return (hits searchHits, scrollId)
681681 Left _ -> return ([], Nothing)
682682
683−-- | Use the given scroll to fetch the next page of documents. If
684−-- there are still further pages, there will be a value in the
685−-- 'scrollId' field of the 'SearchResult'
683+-- | Use the given scroll to fetch the next page of documents. If there are no
684+-- further pages, 'SearchResult.searchHits.hits' will be '[]'.
686685advanceScroll
687686 :: ( FromJSON a
688687 , MonadBH m