custom type error for PGAvg
commit6737890449aca5ba8ef43af355ae441e87682a68
authorEitan Chatav <eitan.chatav@gmail.com>
dateFri 15 Feb 2019, 22:57 (8 years ago)
parent5d77a25
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs+2−1
@@ -1781,7 +1781,8 @@ type family PGAvg ty where
17811781 PGAvg 'PGfloat4 = 'PGfloat8
17821782 PGAvg 'PGfloat8 = 'PGfloat8
17831783 PGAvg 'PGinterval = 'PGinterval
1784− -- PGAvg pg = TypeError
1784+ PGAvg pg = TypeError
1785+ ('Text "Squeal type error: No average for " ':<>: 'ShowType pg)
17851786
17861787{-----------------------------------------
17871788type expressions