on master help sign in
Fix a typo in the type signature of ‘parseUrl’
a0eec6bmrkkrp
CHANGELOG.md+4
@@ -1,3 +1,7 @@
1+## Req 1.2.1
2+
3+* Fixed a typo in the type signature of `parseUrl`.
4+
1## Req 1.2.0
5## Req 1.2.0
2
6
3* Added the `parseUrl` function.
7* Added the `parseUrl` function.
Network/HTTP/Req.hs+2−2
@@ -889,11 +889,11 @@ parseUrlHttps url' = do
889-- | A more general URI parsing function that can be used when scheme is not
889-- | A more general URI parsing function that can be used when scheme is not
890-- known beforehand.
890-- known beforehand.
891--
891--
892−-- @since 1.2.0
892+-- @since 1.2.1
893
893
894parseUrl
894parseUrl
895 :: ByteString
895 :: ByteString
896− -> Maybe (Either (Url 'Http, Option scheme) (Url 'Https, Option scheme))
896+ -> Maybe (Either (Url 'Http, Option scheme0) (Url 'Https, Option scheme1))
897parseUrl url = Left <$> parseUrlHttp url <|> Right <$> parseUrlHttps url
897parseUrl url = Left <$> parseUrlHttp url <|> Right <$> parseUrlHttps url
898
898
899-- | Get host\/collection of path pieces and possibly query parameters
899-- | Get host\/collection of path pieces and possibly query parameters