CurryInfo: ertools-3.0.0 / Database.ERD.Generic.unique2C

definition:
unique2C :: (Eq a, Eq b, Read a, Read b, Show a, Show b) =>
            (Key -> (a,b) -> Dynamic) ->  a -> b -> Transaction ()
unique2C entrypred k1 k2 =
  getDB (allDBInfos entrypred) |>>= \is ->
  if length (filter (== (k1,k2)) is) > 1
   then errorT (TError UniqueError "relationship not unique")
   else doneT
demand:
no demanded arguments
deterministic:
deterministic operation
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_,_,_,_,_,_,_,_) |-> _}
name:
unique2C
precedence:
no precedence defined
result-values:
_
signature:
(Prelude.Eq a, Prelude.Eq b, Prelude.Read a, Prelude.Read b, Prelude.Show a, Prelude.Show b) => (Prelude.Int
-> (a, b) -> Database.KeyDatabaseSQLite.Dynamic) -> a -> b
-> Database.KeyDatabaseSQLite.Transaction ()
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term