CurryInfo: flatcurry-4.0.0 / FlatCurry.Goodies.literal

definition:
literal :: Expr -> Literal
literal expr = case expr of
  (Lit l) -> l
  _       -> error "FlatCurryGoodies.literal: no literal"
demand:
argument 1
deterministic:
deterministic operation
documentation:
--- get literal if expression is literal expression
failfree:
_
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{({Lit}) |-> _ || ({Var}) |-> _ || ({Comb}) |-> _ || ({Let}) |-> _ || ({Free}) |-> _ || ({Or}) |-> _ || ({Case}) |-> _ || ({Typed}) |-> _}
name:
literal
precedence:
no precedence defined
result-values:
_
signature:
FlatCurry.Types.Expr -> FlatCurry.Types.Literal
solution-complete:
operation might suspend on free variables
terminating:
yes
totally-defined:
reducible on all ground data terms