Description
Parser for host and port pairs like localhost:22
Description
Simple parser for parsing host and port pairs. Host can be either ipv4, ipv6 or domain name and port are optional.
IPv6 address should be surrounded by square brackets.
Examples:
localhost
localhost:8080
127.0.0.1
127.0.0.1:8080
[::1]
[::1]:8080
README.md
HostAndPort
[] (https://travis-ci.org/bacher09/hostandport)
Simple Haskell library for parsing connection strings that contain host and port info. For more info see package documentation.
License
MIT.