on master help sign in
Fix a typo in the type signature of ‘parseUrl’
commita0eec6b8e24764c938bc1b065a038b0b6cefad7f authormrkkrp <markkarpov92@gmail.com> dateThu 2 Aug 2018, 22:03 (8 years ago) parent2b40f8c
2 files changed+6−2
CHANGELOG.md+4 Network/HTTP/Req.hs+2−2
CHANGELOG.md+4
@@ -1,3 +1,7 @@
1+## Req 1.2.1
2+
3+* Fixed a typo in the type signature of `parseUrl`.
4+
15## Req 1.2.0
26
37* Added the `parseUrl` function.
Network/HTTP/Req.hs+2−2
@@ -889,11 +889,11 @@ parseUrlHttps url' = do
889889-- | A more general URI parsing function that can be used when scheme is not
890890-- known beforehand.
891891--
892−-- @since 1.2.0
892+-- @since 1.2.1
893893
894894parseUrl
895895 :: ByteString
896− -> Maybe (Either (Url 'Http, Option scheme) (Url 'Https, Option scheme))
896+ -> Maybe (Either (Url 'Http, Option scheme0) (Url 'Https, Option scheme1))
897897parseUrl url = Left <$> parseUrlHttp url <|> Right <$> parseUrlHttps url
898898
899899-- | Get host\/collection of path pieces and possibly query parameters