@@ -131,7 +131,7 @@ instance (Client next, ToSegment a) => Client (Capture a next) where
131131 performRequest (Proxy @ next ) (addSegment req (toSegment x)) mgr perf
132132
133133instance (Client next , KnownSymbol method ) => Client (Method method next ) where
134- type RequestData (Method seg next ) = RequestData next
134+ type RequestData (Method method next ) = RequestData next
135135 performRequest _p req mgr perf = performRequest
136136 (Proxy @ next ) req{Http. method = BSC8. pack (symbolVal (Proxy @ method ))} mgr perf
137137
@@ -164,11 +164,12 @@ instance (Client next) => Client (WithIO next) where
164164 type RequestData (WithIO next ) = RequestData next
165165 performRequest _p req mgr perf = performRequest (Proxy @ next ) req mgr perf
166166
167- instance (Client next ) => Client (ReqBodyMultipart fp a next ) where
167+ instance (Client next ) => Client (ReqBodyMultipart a next ) where
168168 type
169- RequestData (ReqBodyMultipart fp a next ) =
170- WithData ([Http. Part ], Maybe ByteString ) (RequestData next )
171- performRequest _p req mgr (WithData (parts, mbBoundary) perf) = do
169+ RequestData (ReqBodyMultipart a next ) =
170+ WithData (a , a -> ([Http. Part ], Maybe ByteString )) (RequestData next )
171+ performRequest _p req mgr (WithData (x, f) perf) = do
172+ let (parts, mbBoundary) = f x
172173 req' <- case mbBoundary of
173174 Nothing -> Http. formDataBody parts req
174175 Just x -> Http. formDataBodyWithBoundary x parts req
0 commit comments