on master help sign in
Remove DBax and DBMin instances for Bool (#126)

TIL that these don't work. I guess bool_and and bool_or are equivalent and more explicit.

commit379b49222747e25cfe4e5f43b9f18f112d8e5477 authorShane <shane.obrien@circuithub.com> dateFri 22 Oct 2021, 13:23 (5 years ago) parent6fad4d1
1 file changed−2
src/Rel8/Type/Ord.hs−2
src/Rel8/Type/Ord.hs−2
@@ -75,7 +75,6 @@ instance Sql DBOrd a => DBOrd (NonEmpty a)
7575-- | The class of database types that support the @max@ aggregation function.
7676type DBMax :: Type -> Constraint
7777class DBOrd a => DBMax a
78−instance DBMax Bool
7978instance DBMax Char
8079instance DBMax Int16
8180instance DBMax Int32
@@ -101,7 +100,6 @@ instance Sql DBMax a => DBMax (NonEmpty a)
101100-- | The class of database types that support the @min@ aggregation function.
102101type DBMin :: Type -> Constraint
103102class DBOrd a => DBMin a
104−instance DBMin Bool
105103instance DBMin Char
106104instance DBMin Int16
107105instance DBMin Int32