@@ -116,7 +116,7 @@ module Squeal.PostgreSQL.Schema
116 , Enumerated (..)
116 , Enumerated (..)
118 , TuplePG
118 , TuplePG
119− , LabelsFrom
119+ , LabelsPG
122 , FieldPG
122 , FieldPG
@@ -721,7 +721,7 @@ type instance PG (hask, hask, hask, hask, hask, hask, hask, hask, hask)
721type instance PG (hask, hask, hask, hask, hask, hask, hask, hask, hask, hask)
721type instance PG (hask, hask, hask, hask, hask, hask, hask, hask, hask, hask)
722 = 'PGfixarray 10 (NullPG hask)
722 = 'PGfixarray 10 (NullPG hask)
723type instance PG (Composite hask) = 'PGcomposite (RowPG hask)
723type instance PG (Composite hask) = 'PGcomposite (RowPG hask)
724−type instance PG (Enumerated hask) = 'PGenum (LabelsFrom hask)
724+type instance PG (Enumerated hask) = 'PGenum (LabelsPG hask)
726newtype Json hask = Json {getJson :: hask}
726newtype Json hask = Json {getJson :: hask}
727 deriving (Eq, Ord, Show, Read, GHC.Generic)
727 deriving (Eq, Ord, Show, Read, GHC.Generic)
@@ -732,17 +732,17 @@ newtype Composite record = Composite {getComposite :: record}
732newtype Enumerated enum = Enumerated {getEnumerated :: enum}
732newtype Enumerated enum = Enumerated {getEnumerated :: enum}
733 deriving (Eq, Ord, Show, Read, GHC.Generic)
733 deriving (Eq, Ord, Show, Read, GHC.Generic)
735−-- | The `LabelsFrom` type family calculates the constructors of a
735+-- | The `LabelsPG` type family calculates the constructors of a
736-- Haskell enum type.
736-- Haskell enum type.
738-- >>> data Schwarma = Beef | Lamb | Chicken deriving GHC.Generic
738-- >>> data Schwarma = Beef | Lamb | Chicken deriving GHC.Generic
739-- >>> instance Generic Schwarma
739-- >>> instance Generic Schwarma
740-- >>> instance HasDatatypeInfo Schwarma
740-- >>> instance HasDatatypeInfo Schwarma
741−-- >>> :kind! LabelsFrom Schwarma
741+-- >>> :kind! LabelsPG Schwarma
742−-- LabelsFrom Schwarma :: [Type.ConstructorName]
742+-- LabelsPG Schwarma :: [Type.ConstructorName]
743-- = '["Beef", "Lamb", "Chicken"]
743-- = '["Beef", "Lamb", "Chicken"]
744−type family LabelsFrom (hask :: Type) :: [Type.ConstructorName] where
744+type family LabelsPG (hask :: Type) :: [Type.ConstructorName] where
745− LabelsFrom hask =
745+ LabelsPG hask =
746 ConstructorNamesOf (ConstructorsOf (DatatypeInfoOf hask))
746 ConstructorNamesOf (ConstructorsOf (DatatypeInfoOf hask))
748type family RowPG (hask :: Type) :: RowType where
748type family RowPG (hask :: Type) :: RowType where