| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Model.URL
Contents
Documentation
Represents a general universal resource identifier using its component parts.
For example, for the URI
foo://anonymous@www.haskell.org:42/ghc?query#frag
the components are:
validHDL :: String -> Bool Source #
A valid HDL handle consists of digits with periods interleaved, ending with a slash (following by anything). See handle.net for more information. What is generating and using HDL urls?
parseURL :: String -> Maybe URI Source #
Start from either a shorthand DOI value or a doi/hdl scheme or doi domain, and expand out to canonical HDL based URI. For all other http/https URLs, pass value through
urlLink :: URI -> URI Source #
Expand special doi and hdl scheme URIs to equivalent http scheme URIs. Allow http URIs to pass through
Orphan instances
| Lift URI Source # | |
| Lift URIAuth Source # | |
| ToJSON URI Source # | Format a URL value for inclusion in a JSON object |
| ToValue URI Source # | Format a URI for display in a server side generated html page |
| PGParameter "text" URI Source # | From URI value into value to be provided to database |
| PGColumn "text" URI Source # | From database value to URI value |