opaleye-0.5.3.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.Internal.Distinct

Documentation

distinctExplicit :: Distinctspec columns columns' -> Query columns -> Query columns' Source #

newtype Distinctspec a b Source #

Constructors

Distinctspec (Aggregator a b) 

Instances

SumProfunctor Distinctspec Source # 

Methods

(+++!) :: Distinctspec a b -> Distinctspec a' b' -> Distinctspec (Either a a') (Either b b') #

ProductProfunctor Distinctspec Source # 

Methods

empty :: Distinctspec () () #

(***!) :: Distinctspec a b -> Distinctspec a' b' -> Distinctspec (a, a') (b, b') #

Profunctor Distinctspec Source # 

Methods

dimap :: (a -> b) -> (c -> d) -> Distinctspec b c -> Distinctspec a d #

lmap :: (a -> b) -> Distinctspec b c -> Distinctspec a c #

rmap :: (b -> c) -> Distinctspec a b -> Distinctspec a c #

(#.) :: Coercible * c b => (b -> c) -> Distinctspec a b -> Distinctspec a c #

(.#) :: Coercible * b a => Distinctspec b c -> (a -> b) -> Distinctspec a c #

Default Distinctspec (Column a) (Column a) Source # 

Methods

def :: Distinctspec (Column a) (Column a) #

Functor (Distinctspec a) Source # 

Methods

fmap :: (a -> b) -> Distinctspec a a -> Distinctspec a b #

(<$) :: a -> Distinctspec a b -> Distinctspec a a #

Applicative (Distinctspec a) Source # 

Methods

pure :: a -> Distinctspec a a #

(<*>) :: Distinctspec a (a -> b) -> Distinctspec a a -> Distinctspec a b #

(*>) :: Distinctspec a a -> Distinctspec a b -> Distinctspec a b #

(<*) :: Distinctspec a a -> Distinctspec a b -> Distinctspec a a #