CurryInfo: makefile-3.0.0 / GenerateMakeFile.findSourceFileInLoadPath

definition:
findSourceFileInLoadPath :: String -> IO String
findSourceFileInLoadPath modname =
  lookupModuleSourceInLoadPath modname >>=
  maybe (error ("Curry file for module \""++modname++"\" not found!"))
        (return . dropLocal . snd)
 where
  dropLocal f = if take 2 f == "./" then drop 2 f else f
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
-- add a directory name for a Curry source file by looking up the
-- current load path (CURRYPATH):
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_) |-> _}
name:
findSourceFileInLoadPath
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