on dev help sign in
custom type error for PGAvg
6737890Eitan Chatav
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs+2−1
@@ -1781,7 +1781,8 @@ type family PGAvg ty where
1781 PGAvg 'PGfloat4 = 'PGfloat8
1781 PGAvg 'PGfloat4 = 'PGfloat8
1782 PGAvg 'PGfloat8 = 'PGfloat8
1782 PGAvg 'PGfloat8 = 'PGfloat8
1783 PGAvg 'PGinterval = 'PGinterval
1783 PGAvg 'PGinterval = 'PGinterval
1784− -- PGAvg pg = TypeError
1784+ PGAvg pg = TypeError
1785+ ('Text "Squeal type error: No average for " ':<>: 'ShowType pg)
1785
1786
1786{-----------------------------------------
1787{-----------------------------------------
1787type expressions
1788type expressions