CurryInfo: icurry-3.2.0 / TermGraph.SVG.getAttribute

definition:
 
getAttribute :: Read a => String -> XmlExp -> a
getAttribute attr (XElem _ attrs _) = (read . (fromMaybe (error "Error in getAttribute")) . (lookup attr)) attrs
getAttribute _    (XText _)         = error "XText does not contain attributes"
demand:
 argument 3
deterministic:
 deterministic operation
documentation:
 
get the Value of a spcific Attribute from an Xml Expression
failfree:
 <FAILING>
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {(_,_,{XElem}) |-> _}
name:
 getAttribute
precedence:
 no precedence defined
result-values:
 _
signature:
 Prelude.Read a => String -> XML.XmlExp -> a
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 possibly non-reducible on same data term