Skip to content

Commit

Permalink
Remove DBax and DBMin instances for Bool (#126)
Browse files Browse the repository at this point in the history
TIL that these don't work. I guess bool_and and bool_or are equivalent and more explicit.
  • Loading branch information
shane-circuithub committed Oct 22, 2021
1 parent 6fad4d1 commit 379b492
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Rel8/Type/Ord.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ instance Sql DBOrd a => DBOrd (NonEmpty a)
-- | The class of database types that support the @max@ aggregation function.
type DBMax :: Type -> Constraint
class DBOrd a => DBMax a
instance DBMax Bool
instance DBMax Char
instance DBMax Int16
instance DBMax Int32
Expand All @@ -101,7 +100,6 @@ instance Sql DBMax a => DBMax (NonEmpty a)
-- | The class of database types that support the @min@ aggregation function.
type DBMin :: Type -> Constraint
class DBOrd a => DBMin a
instance DBMin Bool
instance DBMin Char
instance DBMin Int16
instance DBMin Int32
Expand Down

0 comments on commit 379b492

Please sign in to comment.