/usr/share/doc/libghc-uri-doc/html/uri.txt is in libghc-uri-doc 0.1.6.2-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Library for working with URIs
--
-- Library for working with URIs, including parsing, rendering, merging,
-- escaping
@package uri
@version 0.1.6.2
module Text.URI
-- | Represents a general universal resource identifier using its component
-- parts.
--
-- For example, for the URI
--
-- <pre>
-- foo://anonymous@www.haskell.org:42/ghc?query#frag
-- </pre>
--
-- the components are:
data URI
URI :: Maybe String -> Maybe String -> Maybe String -> Maybe Integer -> String -> Maybe String -> Maybe String -> URI
-- | <pre>
-- foo
-- </pre>
[uriScheme] :: URI -> Maybe String
-- | <pre>
-- anonymous
-- </pre>
[uriUserInfo] :: URI -> Maybe String
-- | <pre>
-- www.haskell.org
-- </pre>
[uriRegName] :: URI -> Maybe String
-- | <pre>
-- 42
-- </pre>
[uriPort] :: URI -> Maybe Integer
-- | <pre>
-- /ghc
-- </pre>
[uriPath] :: URI -> String
-- | <pre>
-- query
-- </pre>
[uriQuery] :: URI -> Maybe String
-- | <pre>
-- frag
-- </pre>
[uriFragment] :: URI -> Maybe String
-- | Removes ".." and "." from path
dereferencePath :: [String] -> [String]
-- | dereferencePath for strings
dereferencePathString :: String -> String
-- | Escapes string, using predicate to determine whether character is
-- allowed
escapeString :: (Char -> Bool) -> String -> String
-- | Checks if uri is a reference
isReference :: URI -> Bool
-- | Checks if uri is relative
isRelative :: URI -> Bool
-- | Blank URI
nullURI :: URI
-- | Checks if character is OK in fragment
okInFragment :: Char -> Bool
-- | Checks if character is OK in path
okInPath :: Char -> Bool
-- | Checks if character is OK in query
okInQuery :: Char -> Bool
-- | Checks if character is OK in urlencoded query item
okInQueryItem :: Char -> Bool
-- | Checks if character is OK in userinfo
okInUserinfo :: Char -> Bool
-- | Merges two paths
mergePaths :: [String] -> [String] -> [String]
-- | mergePaths for strings
mergePathStrings :: String -> String -> String
-- | Merges two URIs
mergeURIs :: URI -> URI -> URI
-- | mergeURIs for strings
mergeURIStrings :: String -> String -> String
-- | Composes www-urlencoded query from key-value pairs
pairsToQuery :: [(String, String)] -> String
-- | Parses URI
parseURI :: String -> Maybe URI
-- | Splits path to segments
pathToSegments :: String -> [String]
-- | Joins path segments, with escaping
segmentsToPath :: [String] -> String
-- | Parses www-urlencoded string to key-value pairs
queryToPairs :: String -> [(String, String)]
-- | Unescapes percent-sequences
unescapeString :: String -> String
-- | Convenience function for extracting path segments
uriPathSegments :: URI -> [String]
-- | Convenience function for extracting www-urlencoded data
uriQueryItems :: URI -> [(String, String)]
instance GHC.Classes.Eq Text.URI.URI
instance GHC.Show.Show Text.URI.URI
|