ContentsIndex
Helpers.Common
Description
this module contains some common function used by other modules that don't (yet) have their own category
Synopsis
defaultVersionToken :: VersionToken
find_package_paths :: String -> [FilePath] -> IO [FilePath]
get_categories :: FilePath -> IO [FilePath]
show_version :: IO ()
strip_category :: String -> [FilePath] -> (String, [FilePath])
split_version_BS :: ByteString -> VersionToken
data VersionToken = VersionToken {
dName :: ByteString
dVersion :: ByteString
dSlot :: ByteString
dUseDeps :: ByteString
}
Documentation
defaultVersionToken :: VersionToken
find_package_paths :: String -> [FilePath] -> IO [FilePath]
look for packages matching the searched for name in database
get_categories :: FilePath -> IO [FilePath]
filter all category directories from main database directory
show_version :: IO ()
function printing out the current version information
strip_category :: String -> [FilePath] -> (String, [FilePath])
given a pattern and a list of search paths, try to strip the category of the pattern. If one exists, restrict the search to the single path in the list of filepaths corresponding to the category.
split_version_BS :: ByteString -> VersionToken
splits off the version string from the package name via regular expression NOTE: This is a specialized version for ByteString
data VersionToken
data structure holding the pieces of an EAPI version string, i.e. name-version:slot[useDep]
Constructors
VersionToken
dName :: ByteString
dVersion :: ByteString
dSlot :: ByteString
dUseDeps :: ByteString
Produced by Haddock version 2.4.2