haskell / haskell/network-uri

expose a uriUserInfo parser

Open
#91 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
28
Forks
34
PR merge metrics
No merged PRs in 30d

Description

There is not currently any way to split the uriUserInfo into user name and password, which leaves anyone who needs to do that to implementing part of URI parsing themselves.

It's not quite as simple as just `break (==':')`; as seen in [defaultUserInfoMap](https://hackage.haskell.org/package/network-uri-2.6.4.2/docs/src/Network.URI.html#defaultUserInfoMap) the trailing '@' complicates things.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the existing uriUserInfo handling and inspect defaultUserInfoMap in Network.URI, linked from the issue. Trace how the trailing '@' is handled before defining the parser's behavior. Done means callers can obtain the user name and password without reimplementing URI parsing, with coverage for the delimiter edge case.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.