Commit d6d0e64d authored by Michael Hanus 's avatar Michael Hanus
Browse files

CPM updated

parent 921494d3
......@@ -741,8 +741,9 @@ The option \code{--csv} shows the information in CSV format.
Searches the names, synopses, and exported module names of all
packages of the central package index for occurrences of the given
search term.
If the option \code{--module} is set, then the search is restricted
to occurrences of an exported module. Thus, the package
If the option \code{--module} is set, then the given name
is searched in the list of exported modules.
Thus, the package
exporting the module \code{JSON.Data} can be found by the command
%
\begin{lstlisting}
......
......@@ -74,7 +74,7 @@ searchPackages (Repository ps) searchmod searchexec searchterm =
where
allResults = let s = lowerS searchterm
in if searchmod
then filter (\p -> s `elem` exportedModules p) ps
then filter (\p -> searchterm `elem` exportedModules p) ps
else if searchexec
then filter (\p -> s `isInfixOf`
(lowerS $ execOfPackage p)) ps
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment