module Agda.Termination.CutOff where
data CutOff
= CutOff Int
| DontCutOff
deriving (CutOff -> CutOff -> Bool
(CutOff -> CutOff -> Bool)
-> (CutOff -> CutOff -> Bool) -> Eq CutOff
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CutOff -> CutOff -> Bool
$c/= :: CutOff -> CutOff -> Bool
== :: CutOff -> CutOff -> Bool
$c== :: CutOff -> CutOff -> Bool
Eq , Eq CutOff
Eq CutOff
-> (CutOff -> CutOff -> Ordering)
-> (CutOff -> CutOff -> Bool)
-> (CutOff -> CutOff -> Bool)
-> (CutOff -> CutOff -> Bool)
-> (CutOff -> CutOff -> Bool)
-> (CutOff -> CutOff -> CutOff)
-> (CutOff -> CutOff -> CutOff)
-> Ord CutOff
CutOff -> CutOff -> Bool
CutOff -> CutOff -> Ordering
CutOff -> CutOff -> CutOff
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: CutOff -> CutOff -> CutOff
$cmin :: CutOff -> CutOff -> CutOff
max :: CutOff -> CutOff -> CutOff
$cmax :: CutOff -> CutOff -> CutOff
>= :: CutOff -> CutOff -> Bool
$c>= :: CutOff -> CutOff -> Bool
> :: CutOff -> CutOff -> Bool
$c> :: CutOff -> CutOff -> Bool
<= :: CutOff -> CutOff -> Bool
$c<= :: CutOff -> CutOff -> Bool
< :: CutOff -> CutOff -> Bool
$c< :: CutOff -> CutOff -> Bool
compare :: CutOff -> CutOff -> Ordering
$ccompare :: CutOff -> CutOff -> Ordering
$cp1Ord :: Eq CutOff
Ord)
instance Show CutOff where
show :: CutOff -> String
show (CutOff Int
k) = Int -> String
forall a. Show a => a -> String
show Int
k
show CutOff
DontCutOff = String
"∞"