HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulevalidity-network-uri-0.0.0.1Haskell2010

Data.Validity.URI

Validity instances for URI and URIAuth

The main API of this module is in the orphan instances Validity URI and Validity URIAuth.

RFC 3986, section 3

  • 25 values

Helper functions

Render a URI to a String, for use in testing

This uses uriToString id as the docs specify. It potentially exposes passwords, so only use it if you know what you're doing.

Render a URI to a String, for use in debugging.

This uses custom string juggling. It's what happened when you don't derive show but instead write your own show function. :( It potentially exposes passwords, so only use it if you know what you're doing.

Export everything for testing, **You probably do not want to use any of the functions below**.

23 declarations

Render a URI to a String, for use in debugging.

This uses custom string juggling. It's what happened when you don't derive show but instead write your own show function. :( It potentially exposes passwords, so only use it if you know what you're doing.

Render a URI to a String, for use in testing

This uses uriToString id as the docs specify. It potentially exposes passwords, so only use it if you know what you're doing.

Validate the uriRegName part of an URI

NOTE: Watch out with using this validation separately, it may not reject enough.

RFC 3986, section 3.2.2 host = IP-literal IPv4address reg-name

IP-literal = "[" ( IPv6address / IPvFuture  ) "]"

IPvFuture  = "v" 1*HEXDIG "." 1*( unreserved  sub-delims  ":" )
reg-name    = *( unreserved  pct-encoded  sub-delims )

Orphan instances

2 instances