| Copyright | (C) 2014 Jan Stolarek |
|---|---|
| License | BSD-style (see LICENSE) |
| Maintainer | Jan Stolarek (jan.stolarek@p.lodz.pl) |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Promotion.Prelude.Ord
Contents
Description
Provides promoted definitions related to type-level comparisons.
Synopsis
- class PEq a => POrd (a :: Type) where
- type family Comparing (a :: TyFun b a -> Type) (a :: b) (a :: b) :: Ordering where ...
- type family ThenCmp (a :: Ordering) (a :: Ordering) :: Ordering where ...
- data ThenCmpSym0 (l :: TyFun Ordering (TyFun Ordering Ordering -> Type))
- data ThenCmpSym1 (l :: Ordering) (l :: TyFun Ordering Ordering)
- type ThenCmpSym2 (t :: Ordering) (t :: Ordering) = ThenCmp t t
- type LTSym0 = LT
- type EQSym0 = EQ
- type GTSym0 = GT
- data CompareSym0 (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Ordering -> Type))
- data CompareSym1 (l :: a6989586621679315171) (l :: TyFun a6989586621679315171 Ordering)
- type CompareSym2 (t :: a6989586621679315171) (t :: a6989586621679315171) = Compare t t
- data (<@#@$) (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type))
- data (l :: a6989586621679315171) <@#@$$ (l :: TyFun a6989586621679315171 Bool)
- type (<@#@$$$) (t :: a6989586621679315171) (t :: a6989586621679315171) = (<) t t
- data (<=@#@$) (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type))
- data (l :: a6989586621679315171) <=@#@$$ (l :: TyFun a6989586621679315171 Bool)
- type (<=@#@$$$) (t :: a6989586621679315171) (t :: a6989586621679315171) = (<=) t t
- data (>@#@$) (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type))
- data (l :: a6989586621679315171) >@#@$$ (l :: TyFun a6989586621679315171 Bool)
- type (>@#@$$$) (t :: a6989586621679315171) (t :: a6989586621679315171) = (>) t t
- data (>=@#@$) (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type))
- data (l :: a6989586621679315171) >=@#@$$ (l :: TyFun a6989586621679315171 Bool)
- type (>=@#@$$$) (t :: a6989586621679315171) (t :: a6989586621679315171) = (>=) t t
- data MaxSym0 (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 a6989586621679315171 -> Type))
- data MaxSym1 (l :: a6989586621679315171) (l :: TyFun a6989586621679315171 a6989586621679315171)
- type MaxSym2 (t :: a6989586621679315171) (t :: a6989586621679315171) = Max t t
- data MinSym0 (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 a6989586621679315171 -> Type))
- data MinSym1 (l :: a6989586621679315171) (l :: TyFun a6989586621679315171 a6989586621679315171)
- type MinSym2 (t :: a6989586621679315171) (t :: a6989586621679315171) = Min t t
- data ComparingSym0 (l :: TyFun (TyFun b6989586621679315161 a6989586621679315160 -> Type) (TyFun b6989586621679315161 (TyFun b6989586621679315161 Ordering -> Type) -> Type))
- data ComparingSym1 (l :: TyFun b6989586621679315161 a6989586621679315160 -> Type) (l :: TyFun b6989586621679315161 (TyFun b6989586621679315161 Ordering -> Type))
- data ComparingSym2 (l :: TyFun b6989586621679315161 a6989586621679315160 -> Type) (l :: b6989586621679315161) (l :: TyFun b6989586621679315161 Ordering)
- type ComparingSym3 (t :: TyFun b6989586621679315161 a6989586621679315160 -> Type) (t :: b6989586621679315161) (t :: b6989586621679315161) = Comparing t t t
Documentation
class PEq a => POrd (a :: Type) #
Associated Types
type Compare (arg :: a) (arg :: a) :: Ordering #
type (arg :: a) < (arg :: a) :: Bool #
type (arg :: a) <= (arg :: a) :: Bool #
type (arg :: a) > (arg :: a) :: Bool #
type (arg :: a) >= (arg :: a) :: Bool #
Defunctionalization symbols
data ThenCmpSym0 (l :: TyFun Ordering (TyFun Ordering Ordering -> Type)) #
Instances
| SuppressUnusedWarnings ThenCmpSym0 # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply ThenCmpSym0 (l :: Ordering) # | |
Defined in Data.Singletons.Prelude.Ord | |
data ThenCmpSym1 (l :: Ordering) (l :: TyFun Ordering Ordering) #
Instances
| SuppressUnusedWarnings ThenCmpSym1 # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply (ThenCmpSym1 l1 :: TyFun Ordering Ordering -> *) (l2 :: Ordering) # | |
Defined in Data.Singletons.Prelude.Ord | |
type ThenCmpSym2 (t :: Ordering) (t :: Ordering) = ThenCmp t t #
data CompareSym0 (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Ordering -> Type)) #
Instances
| SuppressUnusedWarnings (CompareSym0 :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Ordering -> Type) -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply (CompareSym0 :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Ordering -> Type) -> *) (l :: a6989586621679315171) # | |
Defined in Data.Singletons.Prelude.Ord type Apply (CompareSym0 :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Ordering -> Type) -> *) (l :: a6989586621679315171) = CompareSym1 l | |
data CompareSym1 (l :: a6989586621679315171) (l :: TyFun a6989586621679315171 Ordering) #
Instances
| SuppressUnusedWarnings (CompareSym1 :: a6989586621679315171 -> TyFun a6989586621679315171 Ordering -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply (CompareSym1 l1 :: TyFun a Ordering -> *) (l2 :: a) # | |
Defined in Data.Singletons.Prelude.Ord | |
type CompareSym2 (t :: a6989586621679315171) (t :: a6989586621679315171) = Compare t t #
data (<@#@$) (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type)) #
Instances
| SuppressUnusedWarnings ((<@#@$) :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type) -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply ((<@#@$) :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type) -> *) (l :: a6989586621679315171) # | |
data (l :: a6989586621679315171) <@#@$$ (l :: TyFun a6989586621679315171 Bool) #
Instances
| SuppressUnusedWarnings ((<@#@$$) :: a6989586621679315171 -> TyFun a6989586621679315171 Bool -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply ((<@#@$$) l1 :: TyFun a Bool -> *) (l2 :: a) # | |
data (<=@#@$) (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type)) #
Instances
| SuppressUnusedWarnings ((<=@#@$) :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type) -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply ((<=@#@$) :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type) -> *) (l :: a6989586621679315171) # | |
data (l :: a6989586621679315171) <=@#@$$ (l :: TyFun a6989586621679315171 Bool) #
Instances
| SuppressUnusedWarnings ((<=@#@$$) :: a6989586621679315171 -> TyFun a6989586621679315171 Bool -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply ((<=@#@$$) l1 :: TyFun a Bool -> *) (l2 :: a) # | |
type (<=@#@$$$) (t :: a6989586621679315171) (t :: a6989586621679315171) = (<=) t t #
data (>@#@$) (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type)) #
Instances
| SuppressUnusedWarnings ((>@#@$) :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type) -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply ((>@#@$) :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type) -> *) (l :: a6989586621679315171) # | |
data (l :: a6989586621679315171) >@#@$$ (l :: TyFun a6989586621679315171 Bool) #
Instances
| SuppressUnusedWarnings ((>@#@$$) :: a6989586621679315171 -> TyFun a6989586621679315171 Bool -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply ((>@#@$$) l1 :: TyFun a Bool -> *) (l2 :: a) # | |
data (>=@#@$) (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type)) #
Instances
| SuppressUnusedWarnings ((>=@#@$) :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type) -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply ((>=@#@$) :: TyFun a6989586621679315171 (TyFun a6989586621679315171 Bool -> Type) -> *) (l :: a6989586621679315171) # | |
data (l :: a6989586621679315171) >=@#@$$ (l :: TyFun a6989586621679315171 Bool) #
Instances
| SuppressUnusedWarnings ((>=@#@$$) :: a6989586621679315171 -> TyFun a6989586621679315171 Bool -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply ((>=@#@$$) l1 :: TyFun a Bool -> *) (l2 :: a) # | |
type (>=@#@$$$) (t :: a6989586621679315171) (t :: a6989586621679315171) = (>=) t t #
data MaxSym0 (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 a6989586621679315171 -> Type)) #
Instances
| SuppressUnusedWarnings (MaxSym0 :: TyFun a6989586621679315171 (TyFun a6989586621679315171 a6989586621679315171 -> Type) -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply (MaxSym0 :: TyFun a6989586621679315171 (TyFun a6989586621679315171 a6989586621679315171 -> Type) -> *) (l :: a6989586621679315171) # | |
data MaxSym1 (l :: a6989586621679315171) (l :: TyFun a6989586621679315171 a6989586621679315171) #
Instances
| SuppressUnusedWarnings (MaxSym1 :: a6989586621679315171 -> TyFun a6989586621679315171 a6989586621679315171 -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply (MaxSym1 l1 :: TyFun a a -> *) (l2 :: a) # | |
data MinSym0 (l :: TyFun a6989586621679315171 (TyFun a6989586621679315171 a6989586621679315171 -> Type)) #
Instances
| SuppressUnusedWarnings (MinSym0 :: TyFun a6989586621679315171 (TyFun a6989586621679315171 a6989586621679315171 -> Type) -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply (MinSym0 :: TyFun a6989586621679315171 (TyFun a6989586621679315171 a6989586621679315171 -> Type) -> *) (l :: a6989586621679315171) # | |
data MinSym1 (l :: a6989586621679315171) (l :: TyFun a6989586621679315171 a6989586621679315171) #
Instances
| SuppressUnusedWarnings (MinSym1 :: a6989586621679315171 -> TyFun a6989586621679315171 a6989586621679315171 -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply (MinSym1 l1 :: TyFun a a -> *) (l2 :: a) # | |
data ComparingSym0 (l :: TyFun (TyFun b6989586621679315161 a6989586621679315160 -> Type) (TyFun b6989586621679315161 (TyFun b6989586621679315161 Ordering -> Type) -> Type)) #
Instances
| SuppressUnusedWarnings (ComparingSym0 :: TyFun (TyFun b6989586621679315161 a6989586621679315160 -> Type) (TyFun b6989586621679315161 (TyFun b6989586621679315161 Ordering -> Type) -> Type) -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply (ComparingSym0 :: TyFun (TyFun b6989586621679315161 a6989586621679315160 -> Type) (TyFun b6989586621679315161 (TyFun b6989586621679315161 Ordering -> Type) -> Type) -> *) (l :: TyFun b6989586621679315161 a6989586621679315160 -> Type) # | |
Defined in Data.Singletons.Prelude.Ord | |
data ComparingSym1 (l :: TyFun b6989586621679315161 a6989586621679315160 -> Type) (l :: TyFun b6989586621679315161 (TyFun b6989586621679315161 Ordering -> Type)) #
Instances
| SuppressUnusedWarnings (ComparingSym1 :: (TyFun b6989586621679315161 a6989586621679315160 -> Type) -> TyFun b6989586621679315161 (TyFun b6989586621679315161 Ordering -> Type) -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply (ComparingSym1 l1 :: TyFun b6989586621679315161 (TyFun b6989586621679315161 Ordering -> Type) -> *) (l2 :: b6989586621679315161) # | |
Defined in Data.Singletons.Prelude.Ord type Apply (ComparingSym1 l1 :: TyFun b6989586621679315161 (TyFun b6989586621679315161 Ordering -> Type) -> *) (l2 :: b6989586621679315161) = ComparingSym2 l1 l2 | |
data ComparingSym2 (l :: TyFun b6989586621679315161 a6989586621679315160 -> Type) (l :: b6989586621679315161) (l :: TyFun b6989586621679315161 Ordering) #
Instances
| SuppressUnusedWarnings (ComparingSym2 :: (TyFun b6989586621679315161 a6989586621679315160 -> Type) -> b6989586621679315161 -> TyFun b6989586621679315161 Ordering -> *) # | |
Defined in Data.Singletons.Prelude.Ord Methods suppressUnusedWarnings :: () # | |
| type Apply (ComparingSym2 l1 l2 :: TyFun b Ordering -> *) (l3 :: b) # | |
Defined in Data.Singletons.Prelude.Ord | |
type ComparingSym3 (t :: TyFun b6989586621679315161 a6989586621679315160 -> Type) (t :: b6989586621679315161) (t :: b6989586621679315161) = Comparing t t t #