CurryInfo: icurry-3.2.0 / FlatCurry.CaseLifting.genFuncName

definition: Info
 
genFuncName :: String -> LiftingState QName
genFuncName suffix = do
  st <- get
  let newfn = currFunc st ++ '_' : suffix ++ show (currIndex st)
  put st { currIndex = currIndex st + 1 }
  if newfn `elem` topFuncs st
    then genFuncName suffix
    else return (currMod st, newfn)
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Create a new function name from the current function w.r.t. a suffix.
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 genFuncName
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String
-> Control.Monad.Trans.State.StateT LiftState Data.Functor.Identity.Identity (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