|
A tool to query analysis information about entities (e.g., function, types, type classes) defined in a module of some Curry package.
To use the tool to show information about some function, run
> cpm-query <module name> <function name>
Note that cypm exec
is not necessary to invoke the tool since
the load path is computed by this tool. For instance, try
> cpm-query Data.List split > cpm-query System.Process exitWith > cpm-query System.Directory doesFileExist
Version: January 2025
banner
:: String
|
main
:: IO ()
|
generateForPackage
:: Options -> String -> String -> IO ()
|
generateForModule
:: Options -> String -> String -> String -> IO ()
|
queryModuleEntity
:: Options -> String -> String -> IO ()
|
queryPackage
:: Options -> IO ()
|
curryInfoOptions
:: Options -> [String]
|
curryInfoCmd
:: Options -> [String] -> (String,[String])
|
callCurryInfo
:: Options -> [String] -> IO ()
|
askCurryInfoServer
:: String -> CurryEntity -> String -> IO (Maybe [((String,String),String)])
This action starts curry-info
in server mode and returns the result
of the given request (third argument) for all operations in the module
provided as the first argument.
|
askCurryInfoCmd
:: Bool -> String -> CurryEntity -> String -> IO (Maybe [((String,String),String)])
This action uses the curry-info
command to return the result
of the given request (third argument) for all entities in the module
provided as the first argument.
|
queryCurryInfo
:: Read a => [(String,String)] -> String -> IO a
Query curry-info
with some request where the options are taken
from the RC file.
|
queryCurryInfoWithOptions
:: Read a => Options -> [(String,String)] -> String -> IO a
Query curry-info
with some request.
|
getPackageModules
:: Options -> String -> String -> IO [String]
Get all modules of a package version by curry-info .
|
getPackageModuleOps
:: Options -> String -> String -> IO [(String,Int)]
Get the number of operations of all modules of a package version. |
curryInfoBin
:: String
The binary name of the curry-info tool. |
fromQName
:: String -> (String,String)
Transforms a possible qualified name into a pair of a module name (which might be empty) and an unqualified name. |
string2urlencoded
:: String -> String
|
escapeShellString
:: String -> String
|
|
|
|
|
|
|
|
|
|
This action starts The package and version are determined using the Curry loadpath. If something goes wrong, Nothing is returned.
|
This action uses the The package and version are determined using the Curry loadpath. If something goes wrong, Nothing is returned.
|
Query |
Query |
Get all modules of a package version by |
Get the number of operations of all modules of a package version. In case of a parse error, the program is terminated with an error state. |
The binary name of the curry-info tool.
|
Transforms a possible qualified name into a pair of a module name (which might be empty) and an unqualified name. |
|
|