CurryInfo: currypath-3.0.0 / System.CurryPath.splitProgramName

definition: Info
 
splitProgramName :: String -> (FilePath, ModuleIdent)
splitProgramName s
  | null ps
  = (".", "")
  | null (tail ps)
  = (".", head ps)
  | otherwise
  = (concat (init ps), last ps)
 where
  ps = splitPath (stripCurrySuffix s)
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Splits a program name, i.e., a module name possibly prefixed by
a directory, into the directory and the module name.
A possible suffix like `.curry` or `.lcurry` is dropped from the
module name.
For instance `splitProgramName "lib/Data.Set.curry"` evaluates
to `("lib","Data.Set")`.
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> {(,)}}
name: Info
 splitProgramName
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