CurryInfo: roman-2.0.0 / Data.Roman.toInt

definition:
 
toInt :: Roman -> Int
toInt I   =    1
toInt V   =    5
toInt X   =   10
toInt L   =   50
toInt C   =  100
toInt D   =  500
toInt M   = 1000
toInt (Minus m r)       = toInt r - toInt m
toInt (Plus  r p)       = toInt r + toInt p
demand:
 argument 1
deterministic:
 deterministic operation
documentation:
 
Converts a roman number to an integer.
failfree:
 _
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {({I}) |-> {1} || ({V}) |-> {5} || ({X}) |-> {10} || ({L}) |-> {50} || ({C}) |-> {100} || ({D}) |-> {500} || ({M}) |-> {1000} || ({Minus}) |-> _ || ({Plus}) |-> _}
name:
 toInt
precedence:
 no precedence defined
result-values:
 _
signature:
 Roman -> Prelude.Int
solution-complete:
 operation might suspend on free variables
terminating:
 yes
totally-defined:
 reducible on all ground data terms