CurryInfo: makefile-3.0.0 / GenerateMakeFile.simplifyPath

definition: Info
 
simplifyPath :: String -> String -> String
simplifyPath curdir filename
 | pakcslib `isPrefixOf` filename
 = "$(CURRYLIB)" ++ drop (length pakcslib) filename
 | curdir `isPrefixOf` filename
 = drop (length curdir + 1) filename
 | otherwise
 = filename
 where
  pakcslib = installDir </> "lib"
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Simplify the path a file name:
* replace CURRY lib directory prefix by $(CURRYLIB)
* strip prefix if it is identical to the given working directory
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_) |-> _}
name: Info
 simplifyPath
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> String -> 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