@@ -151,7 +151,8 @@ createTable tab columns constraints = UnsafeDefinition $
151151
152152{-| `createTableIfNotExists` creates a table if it doesn't exist, but does not add it to the schema.
153153Instead, the schema already has the table so if the table did not yet exist, the schema was wrong.
154−`createTableIfNotExists` fixes this. Interestingly, this property makes it an idempotent in the `Category` `Definition`.
154+`createTableIfNotExists` fixes this. Interestingly, this property makes it an idempotent in
155+the `Category` of `Definition`s.
155156
156157>>> :set -XOverloadedLabels -XTypeApplications
157158>>> type Table = '[] :=> '["a" ::: 'NoDef :=> 'Null 'PGint4, "b" ::: 'NoDef :=> 'Null 'PGfloat4]
@@ -789,7 +790,7 @@ alterType ty = UnsafeAlterColumn $ "TYPE" <+> renderColumnTypeExpression ty
789790-- CREATE VIEW "bc" AS SELECT "b" AS "b", "c" AS "c" FROM "abc" AS "abc";
790791createView
791792 :: KnownSymbol view
792− => Alias view -- ^ the name of the table to add
793+ => Alias view -- ^ the name of the view to add
793794 -> Query schema '[] relation
794795 -- ^ query
795796 -> Definition schema (Create view ('View relation) schema)
@@ -932,19 +933,19 @@ default_ x ty = UnsafeColumnTypeExpression $
932933 renderColumnTypeExpression ty <+> "DEFAULT" <+> renderExpression x
933934
934935-- | not a true type, but merely a notational convenience for creating
935−-- unique identifier columns with type `'PGint2`
936+-- unique identifier columns with type `PGint2`
936937serial2, smallserial
937938 :: ColumnTypeExpression schema ('Def :=> 'NotNull 'PGint2)
938939serial2 = UnsafeColumnTypeExpression "serial2"
939940smallserial = UnsafeColumnTypeExpression "smallserial"
940941-- | not a true type, but merely a notational convenience for creating
941−-- unique identifier columns with type `'PGint4`
942+-- unique identifier columns with type `PGint4`
942943serial4, serial
943944 :: ColumnTypeExpression schema ('Def :=> 'NotNull 'PGint4)
944945serial4 = UnsafeColumnTypeExpression "serial4"
945946serial = UnsafeColumnTypeExpression "serial"
946947-- | not a true type, but merely a notational convenience for creating
947−-- unique identifier columns with type `'PGint8`
948+-- unique identifier columns with type `PGint8`
948949serial8, bigserial
949950 :: ColumnTypeExpression schema ('Def :=> 'NotNull 'PGint8)
950951serial8 = UnsafeColumnTypeExpression "serial8"