Remove duplicate rows from the Select.
Example type specialization:
distinct :: Select (Field a, Field b) -> Select (Field a, Field b)
Assuming the makeAdaptorAndInstanceInferrable splice has been run for the product type Foo:
distinct :: Select (Foo (Field a) (Field b) (Field c)) -> Select (Foo (Field a) (Field b) (Field c))
If you want to run distinct on Select.SelectArrs you should
apply Opaleye.Lateral.laterally to it:
Opaleye.Lateral.laterally distinct :: Data.Profunctor.Product.Default Distinctspec fields fields => SelectArr i fields -> SelectArr i fields