CurryInfo: xml-3.0.0 / XmlConv.adapt

definition:
adapt :: (a -> b,b -> a) -> XmlConv rep e a -> XmlConv rep e b
adapt (a2b,b2a) (Conv rda sha) = Conv rd sh
 where
  rd = rda />= ret . a2b
  sh = sha . b2a
demand:
arguments 1 2
deterministic:
deterministic operation
documentation:
--- Converts between arbitrary XML converters for different types.
---
--- @param a2b_b2a functions that convert between values of types a and b
--- @param conv XML converter for type a
--- @return XML converter for type b
failfree:
(_, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{({(,)},{Conv}) |-> {Conv}}
name:
adapt
precedence:
no precedence defined
result-values:
{Conv}
signature:
(a -> b, b -> a) -> XmlConv c d a -> XmlConv c d b
solution-complete:
operation might suspend on free variables
terminating:
yes
totally-defined:
reducible on all ground data terms