haskell / haskell/network-uri

Why the : before the port in the URI record?

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

Description

I see that putting a : character in front of the port is clearly intentional :
https://github.com/haskell/network-uri/blob/master/Network/URI.hs#L602

Two questions:
1. Could this be a Maybe Int instead of a string? Most URI implementations store this as an integer and it is far more convenient.
Failing that..
2. Why is there a : in front of the value? This makes it rather annoying to parse out.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.