definition: |
getLoadPathForModule :: ModulePath -> IO [String] getLoadPathForModule modpath = do rcfile <- curryrcFileName mblib <- getPropertyFromFile rcfile "libraries" let fileDir = dropFileName modpath currypath <- getEnv "CURRYPATH" let llib = maybe [] (\l -> if null l then [] else splitSearchPath l) mblib return $ fileDir : (if null currypath then [] else splitSearchPath currypath) ++ llib ++ sysLibPath |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
Returns the current path (list of directory names) that is used for loading modules w.r.t. a given module path. The directory prefix of the module path (or "." if there is no such prefix) is the first element of the load path and the remaining elements are determined by the environment variable CURRYRPATH and the entry "libraries" of the system's rc file. |
failfree: |
<FAILING> |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_) |-> _} |
name: |
getLoadPathForModule |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
String -> Prelude.IO [String] |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |