opaleye-sqlite-0.0.1.1: An SQL-generating DSL targeting SQLite
Safe HaskellNone
LanguageHaskell2010

Opaleye.SQLite.Constant

Documentation

newtype Constant haskells columns Source #

Constructors

Constant 

Fields

Instances

Instances details
Profunctor Constant Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Methods

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

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

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

(#.) :: forall a b c q. Coercible c b => q b c -> Constant a b -> Constant a c #

(.#) :: forall a b c q. Coercible b a => Constant b c -> q a b -> Constant a c #

ProductProfunctor Constant Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Methods

purePP :: b -> Constant a b #

(****) :: Constant a (b -> c) -> Constant a b -> Constant a c #

empty :: Constant () () #

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

SumProfunctor Constant Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Methods

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

Default Constant Bool (Column SqlBool) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant Double (Column SqlReal) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant Int (Column SqlInt) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant Text (Column SqlText) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant Text (Column SqlText) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant String (Column SqlText) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Default Constant haskell (Column sql) => Default Constant (Maybe haskell) (Column (Nullable sql)) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Methods

def :: Constant (Maybe haskell) (Column (Nullable sql)) #

Functor (Constant a) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Methods

fmap :: (a0 -> b) -> Constant a a0 -> Constant a b #

(<$) :: a0 -> Constant a b -> Constant a a0 #

Applicative (Constant a) Source # 
Instance details

Defined in Opaleye.SQLite.Constant

Methods

pure :: a0 -> Constant a a0 #

(<*>) :: Constant a (a0 -> b) -> Constant a a0 -> Constant a b #

liftA2 :: (a0 -> b -> c) -> Constant a a0 -> Constant a b -> Constant a c #

(*>) :: Constant a a0 -> Constant a b -> Constant a b #

(<*) :: Constant a a0 -> Constant a b -> Constant a a0 #

constant :: Default Constant haskells columns => haskells -> columns Source #