CurryInfo: rewriting-3.0.0 / Rewriting.Files.fromLiteral

definition:
 
fromLiteral :: CLiteral -> Term QName
fromLiteral (CIntc i)    = tConst ("%i", show i)
fromLiteral (CFloatc f)  = tConst ("%f", show f)
fromLiteral (CCharc c)   = tConst ("%c", [c])
fromLiteral (CStringc s) = tConst ("%s", s)
demand:
 argument 1
deterministic:
 deterministic operation
documentation:
 
Transforms an abstract Curry literal into a term.
failfree:
 _
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {({CIntc}) |-> {TermCons} || ({CFloatc}) |-> {TermCons} || ({CCharc}) |-> {TermCons} || ({CStringc}) |-> {TermCons}}
name:
 fromLiteral
precedence:
 no precedence defined
result-values:
 {TermCons}
signature:
 AbstractCurry.Types.CLiteral -> Rewriting.Term.Term (String, String)
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 possibly non-reducible on same data term