File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ instance IReadOnly 'RA where iro = ROA
154154-- /Note:/ 'Request' is not 'Functor' on purpose.
155155data GenRequest (mt :: MediaType * ) (rw :: RW ) a where
156156 Query :: Paths -> QueryString -> GenRequest mt rw a
157- PagedQuery :: Paths -> QueryString -> FetchCount -> GenRequest mt rw ( Vector a )
157+ PagedQuery :: ( a ~ t b , Foldable t , Semigroup a ) => Paths -> QueryString -> FetchCount -> GenRequest mt rw a
158158
159159 -- | Command
160160 Command
Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ import qualified Data.ByteString as BS
100100import qualified Data.ByteString.Lazy as LBS
101101import qualified Data.Text as T
102102import qualified Data.Text.Encoding as TE
103- import qualified Data.Vector as V
104103import qualified Network.HTTP.Client as HTTP
105104import qualified Network.HTTP.Client.Internal as HTTP
106105
@@ -242,7 +241,7 @@ executeRequestWithMgrAndRes mgr auth req = runExceptT $ do
242241 performHttpReq httpReq (PagedQuery _ _ l) =
243242 unTagged (performPagedRequest httpLbs' predicate httpReq :: Tagged mt (ExceptT Error IO (HTTP. Response b )))
244243 where
245- predicate v = lessFetchCount (V. length v) l
244+ predicate v = lessFetchCount (length v) l
246245
247246 performHttpReq httpReq (Command _ _ _) = do
248247 res <- httpLbs' httpReq
You can’t perform that action at this time.
0 commit comments