module Hasura.RQL.IR.Conflict
  ( OnConflictClause (..),
    OnConflictClauseData (..),
    ConflictTarget (..),
  )
where

import Hasura.Prelude
import Hasura.RQL.IR.BoolExp
import Hasura.RQL.Types.Backend
import Hasura.SQL.Backend

-- TODO: When adding support for other backends, consider whether these types
-- really are generic. If not, please start by moving them to a Postgres-specific
-- module.

data ConflictTarget (b :: BackendType)
  = CTColumn [Column b]
  | CTConstraint (ConstraintName b)

deriving instance Backend b => Show (ConflictTarget b)

deriving instance Backend b => Eq (ConflictTarget b)

data OnConflictClauseData b v = OnConflictClauseData
  { OnConflictClauseData b v -> ConflictTarget b
cp1udConflictTarget :: ConflictTarget b,
    OnConflictClauseData b v -> [Column b]
cp1udAffectedColumns :: [Column b],
    OnConflictClauseData b v -> PreSetColsG b v
cp1udValues :: PreSetColsG b v,
    OnConflictClauseData b v -> AnnBoolExp b v
cp1udFilter :: AnnBoolExp b v
  }
  deriving (a -> OnConflictClauseData b b -> OnConflictClauseData b a
(a -> b) -> OnConflictClauseData b a -> OnConflictClauseData b b
(forall a b.
 (a -> b) -> OnConflictClauseData b a -> OnConflictClauseData b b)
-> (forall a b.
    a -> OnConflictClauseData b b -> OnConflictClauseData b a)
-> Functor (OnConflictClauseData b)
forall a b.
a -> OnConflictClauseData b b -> OnConflictClauseData b a
forall a b.
(a -> b) -> OnConflictClauseData b a -> OnConflictClauseData b b
forall (b :: BackendType) a b.
Backend b =>
a -> OnConflictClauseData b b -> OnConflictClauseData b a
forall (b :: BackendType) a b.
Backend b =>
(a -> b) -> OnConflictClauseData b a -> OnConflictClauseData b b
forall (f :: * -> *).
(forall a b. (a -> b) -> f a -> f b)
-> (forall a b. a -> f b -> f a) -> Functor f
<$ :: a -> OnConflictClauseData b b -> OnConflictClauseData b a
$c<$ :: forall (b :: BackendType) a b.
Backend b =>
a -> OnConflictClauseData b b -> OnConflictClauseData b a
fmap :: (a -> b) -> OnConflictClauseData b a -> OnConflictClauseData b b
$cfmap :: forall (b :: BackendType) a b.
Backend b =>
(a -> b) -> OnConflictClauseData b a -> OnConflictClauseData b b
Functor, OnConflictClauseData b a -> Bool
(a -> m) -> OnConflictClauseData b a -> m
(a -> b -> b) -> b -> OnConflictClauseData b a -> b
(forall m. Monoid m => OnConflictClauseData b m -> m)
-> (forall m a.
    Monoid m =>
    (a -> m) -> OnConflictClauseData b a -> m)
-> (forall m a.
    Monoid m =>
    (a -> m) -> OnConflictClauseData b a -> m)
-> (forall a b.
    (a -> b -> b) -> b -> OnConflictClauseData b a -> b)
-> (forall a b.
    (a -> b -> b) -> b -> OnConflictClauseData b a -> b)
-> (forall b a.
    (b -> a -> b) -> b -> OnConflictClauseData b a -> b)
-> (forall b a.
    (b -> a -> b) -> b -> OnConflictClauseData b a -> b)
-> (forall a. (a -> a -> a) -> OnConflictClauseData b a -> a)
-> (forall a. (a -> a -> a) -> OnConflictClauseData b a -> a)
-> (forall a. OnConflictClauseData b a -> [a])
-> (forall a. OnConflictClauseData b a -> Bool)
-> (forall a. OnConflictClauseData b a -> Int)
-> (forall a. Eq a => a -> OnConflictClauseData b a -> Bool)
-> (forall a. Ord a => OnConflictClauseData b a -> a)
-> (forall a. Ord a => OnConflictClauseData b a -> a)
-> (forall a. Num a => OnConflictClauseData b a -> a)
-> (forall a. Num a => OnConflictClauseData b a -> a)
-> Foldable (OnConflictClauseData b)
forall a. Eq a => a -> OnConflictClauseData b a -> Bool
forall a. Num a => OnConflictClauseData b a -> a
forall a. Ord a => OnConflictClauseData b a -> a
forall m. Monoid m => OnConflictClauseData b m -> m
forall a. OnConflictClauseData b a -> Bool
forall a. OnConflictClauseData b a -> Int
forall a. OnConflictClauseData b a -> [a]
forall a. (a -> a -> a) -> OnConflictClauseData b a -> a
forall m a. Monoid m => (a -> m) -> OnConflictClauseData b a -> m
forall b a. (b -> a -> b) -> b -> OnConflictClauseData b a -> b
forall a b. (a -> b -> b) -> b -> OnConflictClauseData b a -> b
forall (b :: BackendType) a.
(Backend b, Eq a) =>
a -> OnConflictClauseData b a -> Bool
forall (b :: BackendType) a.
(Backend b, Num a) =>
OnConflictClauseData b a -> a
forall (b :: BackendType) a.
(Backend b, Ord a) =>
OnConflictClauseData b a -> a
forall (b :: BackendType) m.
(Backend b, Monoid m) =>
OnConflictClauseData b m -> m
forall (b :: BackendType) a.
Backend b =>
OnConflictClauseData b a -> Bool
forall (b :: BackendType) a.
Backend b =>
OnConflictClauseData b a -> Int
forall (b :: BackendType) a.
Backend b =>
OnConflictClauseData b a -> [a]
forall (b :: BackendType) a.
Backend b =>
(a -> a -> a) -> OnConflictClauseData b a -> a
forall (b :: BackendType) m a.
(Backend b, Monoid m) =>
(a -> m) -> OnConflictClauseData b a -> m
forall (b :: BackendType) b a.
Backend b =>
(b -> a -> b) -> b -> OnConflictClauseData b a -> b
forall (b :: BackendType) a b.
Backend b =>
(a -> b -> b) -> b -> OnConflictClauseData b a -> b
forall (t :: * -> *).
(forall m. Monoid m => t m -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. t a -> [a])
-> (forall a. t a -> Bool)
-> (forall a. t a -> Int)
-> (forall a. Eq a => a -> t a -> Bool)
-> (forall a. Ord a => t a -> a)
-> (forall a. Ord a => t a -> a)
-> (forall a. Num a => t a -> a)
-> (forall a. Num a => t a -> a)
-> Foldable t
product :: OnConflictClauseData b a -> a
$cproduct :: forall (b :: BackendType) a.
(Backend b, Num a) =>
OnConflictClauseData b a -> a
sum :: OnConflictClauseData b a -> a
$csum :: forall (b :: BackendType) a.
(Backend b, Num a) =>
OnConflictClauseData b a -> a
minimum :: OnConflictClauseData b a -> a
$cminimum :: forall (b :: BackendType) a.
(Backend b, Ord a) =>
OnConflictClauseData b a -> a
maximum :: OnConflictClauseData b a -> a
$cmaximum :: forall (b :: BackendType) a.
(Backend b, Ord a) =>
OnConflictClauseData b a -> a
elem :: a -> OnConflictClauseData b a -> Bool
$celem :: forall (b :: BackendType) a.
(Backend b, Eq a) =>
a -> OnConflictClauseData b a -> Bool
length :: OnConflictClauseData b a -> Int
$clength :: forall (b :: BackendType) a.
Backend b =>
OnConflictClauseData b a -> Int
null :: OnConflictClauseData b a -> Bool
$cnull :: forall (b :: BackendType) a.
Backend b =>
OnConflictClauseData b a -> Bool
toList :: OnConflictClauseData b a -> [a]
$ctoList :: forall (b :: BackendType) a.
Backend b =>
OnConflictClauseData b a -> [a]
foldl1 :: (a -> a -> a) -> OnConflictClauseData b a -> a
$cfoldl1 :: forall (b :: BackendType) a.
Backend b =>
(a -> a -> a) -> OnConflictClauseData b a -> a
foldr1 :: (a -> a -> a) -> OnConflictClauseData b a -> a
$cfoldr1 :: forall (b :: BackendType) a.
Backend b =>
(a -> a -> a) -> OnConflictClauseData b a -> a
foldl' :: (b -> a -> b) -> b -> OnConflictClauseData b a -> b
$cfoldl' :: forall (b :: BackendType) b a.
Backend b =>
(b -> a -> b) -> b -> OnConflictClauseData b a -> b
foldl :: (b -> a -> b) -> b -> OnConflictClauseData b a -> b
$cfoldl :: forall (b :: BackendType) b a.
Backend b =>
(b -> a -> b) -> b -> OnConflictClauseData b a -> b
foldr' :: (a -> b -> b) -> b -> OnConflictClauseData b a -> b
$cfoldr' :: forall (b :: BackendType) a b.
Backend b =>
(a -> b -> b) -> b -> OnConflictClauseData b a -> b
foldr :: (a -> b -> b) -> b -> OnConflictClauseData b a -> b
$cfoldr :: forall (b :: BackendType) a b.
Backend b =>
(a -> b -> b) -> b -> OnConflictClauseData b a -> b
foldMap' :: (a -> m) -> OnConflictClauseData b a -> m
$cfoldMap' :: forall (b :: BackendType) m a.
(Backend b, Monoid m) =>
(a -> m) -> OnConflictClauseData b a -> m
foldMap :: (a -> m) -> OnConflictClauseData b a -> m
$cfoldMap :: forall (b :: BackendType) m a.
(Backend b, Monoid m) =>
(a -> m) -> OnConflictClauseData b a -> m
fold :: OnConflictClauseData b m -> m
$cfold :: forall (b :: BackendType) m.
(Backend b, Monoid m) =>
OnConflictClauseData b m -> m
Foldable, Functor (OnConflictClauseData b)
Foldable (OnConflictClauseData b)
Functor (OnConflictClauseData b)
-> Foldable (OnConflictClauseData b)
-> (forall (f :: * -> *) a b.
    Applicative f =>
    (a -> f b)
    -> OnConflictClauseData b a -> f (OnConflictClauseData b b))
-> (forall (f :: * -> *) a.
    Applicative f =>
    OnConflictClauseData b (f a) -> f (OnConflictClauseData b a))
-> (forall (m :: * -> *) a b.
    Monad m =>
    (a -> m b)
    -> OnConflictClauseData b a -> m (OnConflictClauseData b b))
-> (forall (m :: * -> *) a.
    Monad m =>
    OnConflictClauseData b (m a) -> m (OnConflictClauseData b a))
-> Traversable (OnConflictClauseData b)
(a -> f b)
-> OnConflictClauseData b a -> f (OnConflictClauseData b b)
forall (b :: BackendType).
Backend b =>
Functor (OnConflictClauseData b)
forall (b :: BackendType).
Backend b =>
Foldable (OnConflictClauseData b)
forall (b :: BackendType) (m :: * -> *) a.
(Backend b, Monad m) =>
OnConflictClauseData b (m a) -> m (OnConflictClauseData b a)
forall (b :: BackendType) (f :: * -> *) a.
(Backend b, Applicative f) =>
OnConflictClauseData b (f a) -> f (OnConflictClauseData b a)
forall (b :: BackendType) (m :: * -> *) a b.
(Backend b, Monad m) =>
(a -> m b)
-> OnConflictClauseData b a -> m (OnConflictClauseData b b)
forall (b :: BackendType) (f :: * -> *) a b.
(Backend b, Applicative f) =>
(a -> f b)
-> OnConflictClauseData b a -> f (OnConflictClauseData b b)
forall (t :: * -> *).
Functor t
-> Foldable t
-> (forall (f :: * -> *) a b.
    Applicative f =>
    (a -> f b) -> t a -> f (t b))
-> (forall (f :: * -> *) a. Applicative f => t (f a) -> f (t a))
-> (forall (m :: * -> *) a b.
    Monad m =>
    (a -> m b) -> t a -> m (t b))
-> (forall (m :: * -> *) a. Monad m => t (m a) -> m (t a))
-> Traversable t
forall (m :: * -> *) a.
Monad m =>
OnConflictClauseData b (m a) -> m (OnConflictClauseData b a)
forall (f :: * -> *) a.
Applicative f =>
OnConflictClauseData b (f a) -> f (OnConflictClauseData b a)
forall (m :: * -> *) a b.
Monad m =>
(a -> m b)
-> OnConflictClauseData b a -> m (OnConflictClauseData b b)
forall (f :: * -> *) a b.
Applicative f =>
(a -> f b)
-> OnConflictClauseData b a -> f (OnConflictClauseData b b)
sequence :: OnConflictClauseData b (m a) -> m (OnConflictClauseData b a)
$csequence :: forall (b :: BackendType) (m :: * -> *) a.
(Backend b, Monad m) =>
OnConflictClauseData b (m a) -> m (OnConflictClauseData b a)
mapM :: (a -> m b)
-> OnConflictClauseData b a -> m (OnConflictClauseData b b)
$cmapM :: forall (b :: BackendType) (m :: * -> *) a b.
(Backend b, Monad m) =>
(a -> m b)
-> OnConflictClauseData b a -> m (OnConflictClauseData b b)
sequenceA :: OnConflictClauseData b (f a) -> f (OnConflictClauseData b a)
$csequenceA :: forall (b :: BackendType) (f :: * -> *) a.
(Backend b, Applicative f) =>
OnConflictClauseData b (f a) -> f (OnConflictClauseData b a)
traverse :: (a -> f b)
-> OnConflictClauseData b a -> f (OnConflictClauseData b b)
$ctraverse :: forall (b :: BackendType) (f :: * -> *) a b.
(Backend b, Applicative f) =>
(a -> f b)
-> OnConflictClauseData b a -> f (OnConflictClauseData b b)
$cp2Traversable :: forall (b :: BackendType).
Backend b =>
Foldable (OnConflictClauseData b)
$cp1Traversable :: forall (b :: BackendType).
Backend b =>
Functor (OnConflictClauseData b)
Traversable)

data OnConflictClause (b :: BackendType) v
  = OCCDoNothing (Maybe (ConflictTarget b))
  | OCCUpdate (OnConflictClauseData b v)
  deriving (a -> OnConflictClause b b -> OnConflictClause b a
(a -> b) -> OnConflictClause b a -> OnConflictClause b b
(forall a b.
 (a -> b) -> OnConflictClause b a -> OnConflictClause b b)
-> (forall a b. a -> OnConflictClause b b -> OnConflictClause b a)
-> Functor (OnConflictClause b)
forall a b. a -> OnConflictClause b b -> OnConflictClause b a
forall a b.
(a -> b) -> OnConflictClause b a -> OnConflictClause b b
forall (b :: BackendType) a b.
Backend b =>
a -> OnConflictClause b b -> OnConflictClause b a
forall (b :: BackendType) a b.
Backend b =>
(a -> b) -> OnConflictClause b a -> OnConflictClause b b
forall (f :: * -> *).
(forall a b. (a -> b) -> f a -> f b)
-> (forall a b. a -> f b -> f a) -> Functor f
<$ :: a -> OnConflictClause b b -> OnConflictClause b a
$c<$ :: forall (b :: BackendType) a b.
Backend b =>
a -> OnConflictClause b b -> OnConflictClause b a
fmap :: (a -> b) -> OnConflictClause b a -> OnConflictClause b b
$cfmap :: forall (b :: BackendType) a b.
Backend b =>
(a -> b) -> OnConflictClause b a -> OnConflictClause b b
Functor, OnConflictClause b a -> Bool
(a -> m) -> OnConflictClause b a -> m
(a -> b -> b) -> b -> OnConflictClause b a -> b
(forall m. Monoid m => OnConflictClause b m -> m)
-> (forall m a. Monoid m => (a -> m) -> OnConflictClause b a -> m)
-> (forall m a. Monoid m => (a -> m) -> OnConflictClause b a -> m)
-> (forall a b. (a -> b -> b) -> b -> OnConflictClause b a -> b)
-> (forall a b. (a -> b -> b) -> b -> OnConflictClause b a -> b)
-> (forall b a. (b -> a -> b) -> b -> OnConflictClause b a -> b)
-> (forall b a. (b -> a -> b) -> b -> OnConflictClause b a -> b)
-> (forall a. (a -> a -> a) -> OnConflictClause b a -> a)
-> (forall a. (a -> a -> a) -> OnConflictClause b a -> a)
-> (forall a. OnConflictClause b a -> [a])
-> (forall a. OnConflictClause b a -> Bool)
-> (forall a. OnConflictClause b a -> Int)
-> (forall a. Eq a => a -> OnConflictClause b a -> Bool)
-> (forall a. Ord a => OnConflictClause b a -> a)
-> (forall a. Ord a => OnConflictClause b a -> a)
-> (forall a. Num a => OnConflictClause b a -> a)
-> (forall a. Num a => OnConflictClause b a -> a)
-> Foldable (OnConflictClause b)
forall a. Eq a => a -> OnConflictClause b a -> Bool
forall a. Num a => OnConflictClause b a -> a
forall a. Ord a => OnConflictClause b a -> a
forall m. Monoid m => OnConflictClause b m -> m
forall a. OnConflictClause b a -> Bool
forall a. OnConflictClause b a -> Int
forall a. OnConflictClause b a -> [a]
forall a. (a -> a -> a) -> OnConflictClause b a -> a
forall m a. Monoid m => (a -> m) -> OnConflictClause b a -> m
forall b a. (b -> a -> b) -> b -> OnConflictClause b a -> b
forall a b. (a -> b -> b) -> b -> OnConflictClause b a -> b
forall (b :: BackendType) a.
(Backend b, Eq a) =>
a -> OnConflictClause b a -> Bool
forall (b :: BackendType) a.
(Backend b, Num a) =>
OnConflictClause b a -> a
forall (b :: BackendType) a.
(Backend b, Ord a) =>
OnConflictClause b a -> a
forall (b :: BackendType) m.
(Backend b, Monoid m) =>
OnConflictClause b m -> m
forall (b :: BackendType) a.
Backend b =>
OnConflictClause b a -> Bool
forall (b :: BackendType) a.
Backend b =>
OnConflictClause b a -> Int
forall (b :: BackendType) a.
Backend b =>
OnConflictClause b a -> [a]
forall (b :: BackendType) a.
Backend b =>
(a -> a -> a) -> OnConflictClause b a -> a
forall (b :: BackendType) m a.
(Backend b, Monoid m) =>
(a -> m) -> OnConflictClause b a -> m
forall (b :: BackendType) b a.
Backend b =>
(b -> a -> b) -> b -> OnConflictClause b a -> b
forall (b :: BackendType) a b.
Backend b =>
(a -> b -> b) -> b -> OnConflictClause b a -> b
forall (t :: * -> *).
(forall m. Monoid m => t m -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. t a -> [a])
-> (forall a. t a -> Bool)
-> (forall a. t a -> Int)
-> (forall a. Eq a => a -> t a -> Bool)
-> (forall a. Ord a => t a -> a)
-> (forall a. Ord a => t a -> a)
-> (forall a. Num a => t a -> a)
-> (forall a. Num a => t a -> a)
-> Foldable t
product :: OnConflictClause b a -> a
$cproduct :: forall (b :: BackendType) a.
(Backend b, Num a) =>
OnConflictClause b a -> a
sum :: OnConflictClause b a -> a
$csum :: forall (b :: BackendType) a.
(Backend b, Num a) =>
OnConflictClause b a -> a
minimum :: OnConflictClause b a -> a
$cminimum :: forall (b :: BackendType) a.
(Backend b, Ord a) =>
OnConflictClause b a -> a
maximum :: OnConflictClause b a -> a
$cmaximum :: forall (b :: BackendType) a.
(Backend b, Ord a) =>
OnConflictClause b a -> a
elem :: a -> OnConflictClause b a -> Bool
$celem :: forall (b :: BackendType) a.
(Backend b, Eq a) =>
a -> OnConflictClause b a -> Bool
length :: OnConflictClause b a -> Int
$clength :: forall (b :: BackendType) a.
Backend b =>
OnConflictClause b a -> Int
null :: OnConflictClause b a -> Bool
$cnull :: forall (b :: BackendType) a.
Backend b =>
OnConflictClause b a -> Bool
toList :: OnConflictClause b a -> [a]
$ctoList :: forall (b :: BackendType) a.
Backend b =>
OnConflictClause b a -> [a]
foldl1 :: (a -> a -> a) -> OnConflictClause b a -> a
$cfoldl1 :: forall (b :: BackendType) a.
Backend b =>
(a -> a -> a) -> OnConflictClause b a -> a
foldr1 :: (a -> a -> a) -> OnConflictClause b a -> a
$cfoldr1 :: forall (b :: BackendType) a.
Backend b =>
(a -> a -> a) -> OnConflictClause b a -> a
foldl' :: (b -> a -> b) -> b -> OnConflictClause b a -> b
$cfoldl' :: forall (b :: BackendType) b a.
Backend b =>
(b -> a -> b) -> b -> OnConflictClause b a -> b
foldl :: (b -> a -> b) -> b -> OnConflictClause b a -> b
$cfoldl :: forall (b :: BackendType) b a.
Backend b =>
(b -> a -> b) -> b -> OnConflictClause b a -> b
foldr' :: (a -> b -> b) -> b -> OnConflictClause b a -> b
$cfoldr' :: forall (b :: BackendType) a b.
Backend b =>
(a -> b -> b) -> b -> OnConflictClause b a -> b
foldr :: (a -> b -> b) -> b -> OnConflictClause b a -> b
$cfoldr :: forall (b :: BackendType) a b.
Backend b =>
(a -> b -> b) -> b -> OnConflictClause b a -> b
foldMap' :: (a -> m) -> OnConflictClause b a -> m
$cfoldMap' :: forall (b :: BackendType) m a.
(Backend b, Monoid m) =>
(a -> m) -> OnConflictClause b a -> m
foldMap :: (a -> m) -> OnConflictClause b a -> m
$cfoldMap :: forall (b :: BackendType) m a.
(Backend b, Monoid m) =>
(a -> m) -> OnConflictClause b a -> m
fold :: OnConflictClause b m -> m
$cfold :: forall (b :: BackendType) m.
(Backend b, Monoid m) =>
OnConflictClause b m -> m
Foldable, Functor (OnConflictClause b)
Foldable (OnConflictClause b)
Functor (OnConflictClause b)
-> Foldable (OnConflictClause b)
-> (forall (f :: * -> *) a b.
    Applicative f =>
    (a -> f b) -> OnConflictClause b a -> f (OnConflictClause b b))
-> (forall (f :: * -> *) a.
    Applicative f =>
    OnConflictClause b (f a) -> f (OnConflictClause b a))
-> (forall (m :: * -> *) a b.
    Monad m =>
    (a -> m b) -> OnConflictClause b a -> m (OnConflictClause b b))
-> (forall (m :: * -> *) a.
    Monad m =>
    OnConflictClause b (m a) -> m (OnConflictClause b a))
-> Traversable (OnConflictClause b)
(a -> f b) -> OnConflictClause b a -> f (OnConflictClause b b)
forall (b :: BackendType).
Backend b =>
Functor (OnConflictClause b)
forall (b :: BackendType).
Backend b =>
Foldable (OnConflictClause b)
forall (b :: BackendType) (m :: * -> *) a.
(Backend b, Monad m) =>
OnConflictClause b (m a) -> m (OnConflictClause b a)
forall (b :: BackendType) (f :: * -> *) a.
(Backend b, Applicative f) =>
OnConflictClause b (f a) -> f (OnConflictClause b a)
forall (b :: BackendType) (m :: * -> *) a b.
(Backend b, Monad m) =>
(a -> m b) -> OnConflictClause b a -> m (OnConflictClause b b)
forall (b :: BackendType) (f :: * -> *) a b.
(Backend b, Applicative f) =>
(a -> f b) -> OnConflictClause b a -> f (OnConflictClause b b)
forall (t :: * -> *).
Functor t
-> Foldable t
-> (forall (f :: * -> *) a b.
    Applicative f =>
    (a -> f b) -> t a -> f (t b))
-> (forall (f :: * -> *) a. Applicative f => t (f a) -> f (t a))
-> (forall (m :: * -> *) a b.
    Monad m =>
    (a -> m b) -> t a -> m (t b))
-> (forall (m :: * -> *) a. Monad m => t (m a) -> m (t a))
-> Traversable t
forall (m :: * -> *) a.
Monad m =>
OnConflictClause b (m a) -> m (OnConflictClause b a)
forall (f :: * -> *) a.
Applicative f =>
OnConflictClause b (f a) -> f (OnConflictClause b a)
forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> OnConflictClause b a -> m (OnConflictClause b b)
forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> OnConflictClause b a -> f (OnConflictClause b b)
sequence :: OnConflictClause b (m a) -> m (OnConflictClause b a)
$csequence :: forall (b :: BackendType) (m :: * -> *) a.
(Backend b, Monad m) =>
OnConflictClause b (m a) -> m (OnConflictClause b a)
mapM :: (a -> m b) -> OnConflictClause b a -> m (OnConflictClause b b)
$cmapM :: forall (b :: BackendType) (m :: * -> *) a b.
(Backend b, Monad m) =>
(a -> m b) -> OnConflictClause b a -> m (OnConflictClause b b)
sequenceA :: OnConflictClause b (f a) -> f (OnConflictClause b a)
$csequenceA :: forall (b :: BackendType) (f :: * -> *) a.
(Backend b, Applicative f) =>
OnConflictClause b (f a) -> f (OnConflictClause b a)
traverse :: (a -> f b) -> OnConflictClause b a -> f (OnConflictClause b b)
$ctraverse :: forall (b :: BackendType) (f :: * -> *) a b.
(Backend b, Applicative f) =>
(a -> f b) -> OnConflictClause b a -> f (OnConflictClause b b)
$cp2Traversable :: forall (b :: BackendType).
Backend b =>
Foldable (OnConflictClause b)
$cp1Traversable :: forall (b :: BackendType).
Backend b =>
Functor (OnConflictClause b)
Traversable)