type signature works for both old and new versions of ifdef

This commit is contained in:
Joey Hess 2017-12-11 12:49:23 -04:00
parent dd17611b00
commit 70344d25c0
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -350,8 +350,8 @@ parseURIRelaxed :: URLString -> Maybe URI
parseURIRelaxed s = maybe (parseURIRelaxed' s) Just $
parseURI $ escapeURIString isAllowedInURI s
#if MIN_VERSION_http_client(0,4,30)
parseUrlConduit :: URLString -> Maybe Request
#if MIN_VERSION_http_client(0,4,30)
parseUrlConduit = parseUrlThrow
#else
parseUrlConduit = parseUrl