Safe Haskell | None |
---|
A wrapper and type class so that functions like seeOther
can take a URI which is represented by a String
, URI
, or other instance of ToSURI
.
- path :: SURI -> String
- query :: SURI -> String
- scheme :: SURI -> String
- u_scheme :: (String -> String) -> SURI -> SURI
- u_path :: (String -> String) -> SURI -> SURI
- a_scheme :: String -> SURI -> SURI
- a_path :: String -> SURI -> SURI
- escape, unEscapeQS, unEscape :: String -> String
- isAbs :: SURI -> Bool
- newtype SURI = SURI {
- suri :: URI
- render :: ToSURI a => a -> String
- parse :: String -> Maybe SURI
- class ToSURI x where
- class FromPath x where
- fromPath :: String -> x
Documentation
u_scheme :: (String -> String) -> SURI -> SURISource
Modifies the scheme component of the URI using the provided function
u_path :: (String -> String) -> SURI -> SURISource
Modifies the path component of the URI using the provided function
escape, unEscapeQS, unEscape :: String -> StringSource
Convenience class for converting data types to URIs