on dev help sign in
remove PGTypeOf
commitaa5c1f76f48312a807adbac28df3a8fb2c312056 authorEitan Chatav <eitan.chatav@gmail.com> dateWed 11 Jul 2018, 23:00 (8 years ago) parent4b85613
1 file changed−5
squeal-postgresql/src/Squeal/PostgreSQL/Schema.hs−5
squeal-postgresql/src/Squeal/PostgreSQL/Schema.hs−5
@@ -88,7 +88,6 @@ module Squeal.PostgreSQL.Schema
8888 , PGNum
8989 , PGIntegral
9090 , PGFloating
91− , PGTypeOf
9291 , SameTypes
9392 , SamePGType
9493 , AllNotNull
@@ -489,10 +488,6 @@ type PGFloating ty = In ty '[ 'PGfloat4, 'PGfloat8, 'PGnumeric]
489488-- `Squeal.PostgreSQL.Expression.mod_` functions.
490489type PGIntegral ty = In ty '[ 'PGint2, 'PGint4, 'PGint8]
491490
492−-- | `PGTypeOf` forgets about @NULL@ and any column constraints.
493−type family PGTypeOf (ty :: NullityType) :: PGType where
494− PGTypeOf (nullity pg) = pg
495−
496491-- | `SameTypes` is a constraint that proves two `ColumnsType`s have the same
497492-- length and the same `ColumnType`s.
498493type family SameTypes (columns0 :: ColumnsType) (columns1 :: ColumnsType)