Fix Show UrlReq
This commit is contained in:
parent
4ae8b1898f
commit
acbcebc1d3
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,9 @@ instance Exception ServantError
|
||||||
data UrlReq = UrlReq BaseUrl Req
|
data UrlReq = UrlReq BaseUrl Req
|
||||||
|
|
||||||
instance Show UrlReq where
|
instance Show UrlReq where
|
||||||
show (UrlReq url req) = showBaseUrl url ++ reqPath req ++ "?" ++ show (qs req)
|
show (UrlReq url req) = showBaseUrl url ++ path ++ "?" ++ show (qs req)
|
||||||
|
where
|
||||||
|
path = cs (BS.toLazyByteString (reqPath req))
|
||||||
|
|
||||||
data Req = Req
|
data Req = Req
|
||||||
{ reqPath :: BS.Builder
|
{ reqPath :: BS.Builder
|
||||||
|
|
Loading…
Reference in a new issue