Safe Haskell | None |
---|---|
Language | Haskell98 |
- module Network.URI
- data URI'
- toURI' :: URI -> URI'
- fromURI' :: URI' -> URI
- readURI' :: String -> Maybe URI'
- uriToString' :: URI -> String
- fileFromURI :: URI -> IO (Either SomeException ByteString)
- fileFromURIStrict :: URI -> IO (Either SomeException ByteString)
- dirFromURI :: URI -> IO (Either SomeException [String])
Documentation
module Network.URI
A wrapper around a String containing a known parsable URI. Not absolutely safe, because you could say read "URI' "bogus string"" :: URI'. But enough to save me from myself.
toURI' :: URI -> URI' Source #
Using the bogus Show instance of URI here. If it ever gets fixed this will stop working. Worth noting that show will obscure any password info embedded in the URI, so that's nice.
uriToString' :: URI -> String Source #
fileFromURI :: URI -> IO (Either SomeException ByteString) Source #
fileFromURIStrict :: URI -> IO (Either SomeException ByteString) Source #
dirFromURI :: URI -> IO (Either SomeException [String]) Source #