CurryInfo: icurry-3.2.0 / TermGraph.SVG.choiceMappingsFromXml

definition:
 
choiceMappingsFromXml :: XmlExp -> [ChoiceMapping]
choiceMappingsFromXml xml = case xml of
            XElem "graph" _ attrs ->
              let xmlCMs = filterElems "ChoiceMapping" attrs
              in map (\x -> (getAttribute "from" x, (getAttribute "to" x) - 1))
                     xmlCMs
            _                     -> error "No graph supplied"
demand:
 argument 1
deterministic:
 deterministic operation
documentation:
 
Extract choice mappings from a single xml-graph
failfree:
 <FAILING>
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {({XElem}) |-> {:,[]}}
name:
 choiceMappingsFromXml
precedence:
 no precedence defined
result-values:
 {:,[]}
signature:
 XML.XmlExp -> [(Prelude.Int, Prelude.Int)]
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 possibly non-reducible on same data term