Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
type IndexColumn name = IndexColumnWith 'DefaultPrefix name Source #
type NewtypeError = ((Quoted "primNewtype" <> " declares a column for a newtype using ") <> Quoted "Generic") <> "." Source #
primNewtype :: forall a w err. err ~ NewtypeError => UnwrapNewtype err a w => Dd ('DdK 'SelAuto '[Newtype a w] a 'Prim) Source #
primIndex :: forall tpe name. IndexName 'DefaultPrefix tpe name => Dd (IndexColumn tpe) Source #
json :: forall a. ToJSON a => FromJSON a => Dd ('DdK 'SelAuto [PgPrimName, PrimValueCodec a] a 'Prim) Source #
enum :: forall a. Dd ('DdK 'SelAuto [PgPrimName, EnumColumn] a 'Prim) Source #
readShow :: forall a. Dd ('DdK 'SelAuto [PgPrimName, ReadShowColumn] a 'Prim) Source #
array :: forall f a p sel. Dd ('DdK sel p a 'Prim) -> Dd ('DdK sel (ArrayColumn f ': p) (f a) 'Prim) Source #
migrateDef :: forall s0 s1. MapMod (MigrationDefault (DdType s0)) s0 s1 => DdType s0 -> Dd s0 -> Dd s1 Source #
migrateRename :: forall name s0 s1. MapMod (MigrationRename name) s0 s1 => Dd s0 -> Dd s1 Source #
migrateRenameType :: forall name s0 s1. MapMod (MigrationRenameType name) s0 s1 => Dd s0 -> Dd s1 Source #
migrateDelete :: forall s0 s1. MapMod MigrationDelete s0 s1 => Dd s0 -> Dd s1 Source #
type family PrimProd (a :: Type) :: [Type] where ... Source #
PrimProd (ConCol _ _ _ as) = as | |
PrimProd a = ProductGCode a |
class MkPrimNewtypes as s | as -> s where Source #
mkPrimNewtypes :: NP Dd s Source #
Instances
MkPrimNewtypes ('[] :: [k]) ('[] :: [DdK]) Source # | |
(MkPrimNewtypes as s, err ~ NewtypeError, UnwrapNewtype err a w) => MkPrimNewtypes (a ': as :: [Type]) ('DdK 'SelAuto '[Newtype a w] a 'Prim ': s) Source # | |
primNewtypes :: forall (a :: Type) (s :: [DdK]). MkPrimNewtypes (PrimProd a) s => Prims a s Source #