|
definition: |
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: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Create a new function name from the current function w.r.t. a suffix. |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_) |-> _}
|
|
name: |
genFuncName |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
String -> Control.Monad.Trans.State.StateT LiftState Data.Functor.Identity.Identity (String, String) |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |