Module
URI.Common
- Package
- purescript-uri
- Repository
- purescript-contrib/purescript-uri
Common functions used in parsing and printing URI components.
#URIPartParseError Source
newtype URIPartParseError
An error type used when a custom component parser fails to handle a value.
Constructors
Instances
#wrapParser Source
wrapParser :: forall s m a b. Monad m => (a -> Either URIPartParseError b) -> ParserT s m a -> ParserT s m b
Adapts a parser with a parser-esque function. First the original parser runs, then it attempts to refine the result with the function.
#unreserved Source
unreserved :: Parser String Char
Parser for characters that are allowed in a URI but do not have a reserved purpose.
#pctEncoded Source
pctEncoded :: Parser String NonEmptyString
Parser for a percent-encoded character.
#printEncoded' Source
printEncoded' :: Parser String Char -> NonEmptyString -> NonEmptyString
A version of printEncoded
that operates on non-empty
strings.
#decodeURIComponent' Source
decodeURIComponent' :: NonEmptyString -> NonEmptyString
A version of decodeURIComponent
that operates on non-empty strings.
- Modules
- URI
- URI.
AbsoluteURI - URI.
Authority - URI.
Common - URI.
Extra. MultiHostPortPair - URI.
Extra. QueryPairs - URI.
Extra. UserPassInfo - URI.
Fragment - URI.
HierarchicalPart - URI.
Host - URI.
Host. Gen - URI.
Host. IPv4Address - URI.
Host. IPv6Address - URI.
Host. RegName - URI.
HostPortPair - URI.
HostPortPair. Gen - URI.
Path - URI.
Path. Absolute - URI.
Path. NoScheme - URI.
Path. Rootless - URI.
Path. Segment - URI.
Port - URI.
Port. Gen - URI.
Query - URI.
RelativePart - URI.
RelativeRef - URI.
Scheme - URI.
Scheme. Common - URI.
URI - URI.
URIRef - URI.
UserInfo