@@ -138,7 +138,7 @@ module Squeal.PostgreSQL.Expression
140 , vararray
140 , vararray
141− , arrayN
141+ , fixarray
142 , notNull
142 , notNull
143 , default_
143 , default_
144 -- * Re-export
144 -- * Re-export
@@ -1164,12 +1164,12 @@ vararray
1164 -> TypeExpression ('NoDef :=> 'Null ('PGarray pg))
1164 -> TypeExpression ('NoDef :=> 'Null ('PGarray pg))
1165vararray ty = UnsafeTypeExpression $ renderTypeExpression ty <> "[]"
1165vararray ty = UnsafeTypeExpression $ renderTypeExpression ty <> "[]"
1166-- | fixed length array
1166-- | fixed length array
1168 :: KnownNat n
1168 :: KnownNat n
1169 => proxy n
1169 => proxy n
1170 -> TypeExpression ('NoDef :=> 'Null pg)
1170 -> TypeExpression ('NoDef :=> 'Null pg)
1171 -> TypeExpression ('NoDef :=> 'Null ('PGarrayN n pg))
1171 -> TypeExpression ('NoDef :=> 'Null ('PGarrayN n pg))
1172−arrayN p ty = UnsafeTypeExpression $
1172+fixarray p ty = UnsafeTypeExpression $
1173 renderTypeExpression ty <> "[" <> renderNat p <> "]"
1173 renderTypeExpression ty <> "[" <> renderNat p <> "]"
1175-- | used in `createTable` commands as a column constraint to ensure
1175-- | used in `createTable` commands as a column constraint to ensure
@@ -1215,4 +1215,4 @@ instance PGTyped 'PGjsonb where pgtype = jsonb
1215instance PGTyped ty => PGTyped ('PGarray ty) where
1215instance PGTyped ty => PGTyped ('PGarray ty) where
1216 pgtype = vararray (pgtype @ty)
1216 pgtype = vararray (pgtype @ty)
1217instance (KnownNat n, PGTyped ty) => PGTyped ('PGarrayN n ty) where
1217instance (KnownNat n, PGTyped ty) => PGTyped ('PGarrayN n ty) where
1218− pgtype = arrayN (Proxy @n) (pgtype @ty)
1218+ pgtype = fixarray (Proxy @n) (pgtype @ty)