CurryInfo: binint-3.0.0 / Data.BinIntConvert.fromNat

definition:
fromNat :: Nat -> Int
fromNat IHi = 1
fromNat (O n) = 2 * fromNat n
fromNat (I n) = 2 * fromNat n + 1
demand:
argument 1
deterministic:
deterministic operation
documentation:
--- Converts a binary natural number into an integer constant.
failfree:
_
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{({IHi}) |-> {1} || ({O}) |-> _ || ({I}) |-> _}
name:
fromNat
precedence:
no precedence defined
result-values:
_
signature:
Data.BinInt.Nat -> Prelude.Int
solution-complete:
operation might suspend on free variables
terminating:
yes
totally-defined:
reducible on all ground data terms