Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Algebra/PartialOrd.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE Safe #-}
{-# LANGUAGE DefaultSignatures #-}
----------------------------------------------------------------------------
-- |
-- Module : Algebra.PartialOrd
Expand Down Expand Up @@ -84,7 +85,9 @@ import Data.Void (Void)
class Eq a => PartialOrd a where
-- | The relation that induces the partial ordering
leq :: a -> a -> Bool

{-# INLINE leq #-}
default leq :: Ord a => a -> a -> Bool
leq = (<=)
-- | Whether two elements are ordered with respect to the relation. A
-- default implementation is given by
--
Expand Down