Portability | H98 |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
This module defines an algebraic datatype for qualified names (QNames).
- data QName = QName {}
- newQName :: String -> String -> QName
- qnameFromPair :: (String, String) -> QName
- qnameFromURI :: String -> QName
- getNamespace :: QName -> String
- getLocalName :: QName -> String
- getQNameURI :: QName -> String
- splitURI :: String -> (String, String)
- qnameFromFilePath :: FilePath -> IO QName
Documentation
qnameFromPair :: (String, String) -> QNameSource
qnameFromURI :: String -> QNameSource
getNamespace :: QName -> StringSource
getLocalName :: QName -> StringSource
getQNameURI :: QName -> StringSource
qnameFromFilePath :: FilePath -> IO QNameSource
Convert a filepath to a file: URI stored in a QName. If the input file path is relative then the working directory is used to convert it into an absolute path.
If the input represents a directory then it *must* end in
the directory separator - e.g. "/foo/bar/"
rather than
"/foo/bar"
for Posix systems.
This has not been tested on Windows.