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

definition: Info
 
duplicateKeyTest :: (Key -> t -> Dynamic) -> Transaction ()
duplicateKeyTest pred =
  getDB (allDBKeys pred) |>>= \keys ->
  if length (nub keys) == length keys
     then doneT
     else errorT (TError DuplicateKeyError
                         ("database contains duplicate key for table: " 
                          {- ++show pred-})) 
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 duplicateKeyTest
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 (Prelude.Int -> a -> Database.KeyDatabaseSQLite.Dynamic)
-> Database.KeyDatabaseSQLite.Transaction ()
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term