CurryInfo: flatcurry-annotated-3.3.0 / FlatCurry.Annotated.Goodies.literal

definition:
literal :: AExpr _ -> Literal
literal aexpr = case aexpr of
  (ALit _ l) -> l
  _          -> error "AnnotatedFlatCurryGoodies.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:
{({ALit}) |-> _ || ({AVar}) |-> _ || ({AComb}) |-> _ || ({ALet}) |-> _ || ({AFree}) |-> _ || ({AOr}) |-> _ || ({ACase}) |-> _ || ({ATyped}) |-> _}
name:
literal
precedence:
no precedence defined
result-values:
_
signature:
FlatCurry.Annotated.Types.AExpr a -> FlatCurry.Types.Literal
solution-complete:
operation might suspend on free variables
terminating:
yes
totally-defined:
reducible on all ground data terms