@@ -39,7 +39,7 @@ module Squeal.PostgreSQL.Schema
3939 , ColumnType
4040 , ColumnsType
4141 , RelationType
42− , RelationsType
42+ , RelationProduct
4343 , TableType
4444 , SchemaType
4545 , Grouping (..)
@@ -148,7 +148,7 @@ type ColumnType = (ColumnConstraint,NullityType)
148148type ColumnsType = [(Symbol,ColumnType)]
149149
150150type RelationType = [(Symbol,NullityType)]
151−type RelationsType = [(Symbol,RelationType)]
151+type RelationProduct = [(Symbol,RelationType)]
152152
153153type TableType = (TableConstraints,ColumnsType)
154154type SchemaType = [(Symbol,TableType)]
@@ -164,7 +164,7 @@ type family UnconstrainColumns (columns :: ColumnsType) :: RelationType where
164164type family UnconstrainTable (table :: TableType) :: ColumnsType where
165165 UnconstrainTable (constraints :=> columns) = columns
166166
167−type family UnconstrainSchema (schema :: SchemaType) :: RelationsType where
167+type family UnconstrainSchema (schema :: SchemaType) :: RelationProduct where
168168 UnconstrainSchema '[] = '[]
169169 UnconstrainSchema (tab ::: constraints :=> columns ': tables) =
170170 tab ::: UnconstrainColumns columns ': UnconstrainSchema tables
@@ -293,10 +293,10 @@ type family NullifyColumns (columns :: RelationType) :: RelationType where
293293 NullifyColumns (column ::: ty ': columns) =
294294 column ::: NullifyType ty ': NullifyColumns columns
295295
296−-- | `NullifyTables` is an idempotent that nullifies a `RelationsType`
296+-- | `NullifyTables` is an idempotent that nullifies a `RelationProduct`
297297-- used to nullify the left or right hand side of an outer join
298298-- in a `Squeal.PostgreSQL.Query.FromClause`.
299−type family NullifyTables (tables :: RelationsType) :: RelationsType where
299+type family NullifyTables (tables :: RelationProduct) :: RelationProduct where
300300 NullifyTables '[] = '[]
301301 NullifyTables (table ::: columns ': tables) =
302302 table ::: NullifyColumns columns ': NullifyTables tables