CurryInfo: currypath-3.0.0 / System.CurryPath.getLoadPathForModule

definition: Info
 
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: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
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: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 getLoadPathForModule
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> Prelude.IO [String]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term