| Portability | non-portable (FD and MPTC, undecidable-instances) |
|---|---|
| Stability | experimental |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Safe Haskell | Safe-Infered |
Data.Type.Ord
Description
Simple equality and ordering for types. Extended to include common usage cases.
Instances should all really be decidable.
Documentation
class TBool b => TEq x y b | x y -> bSource
Instances
| TEq F F T | |
| TEq F T F | |
| TEq T F F | |
| TEq T T T | |
| TEq Positive Positive T | |
| TEq Positive SignZero F | |
| TEq Positive Negative F | |
| TEq SignZero Positive F | |
| TEq SignZero SignZero T | |
| TEq SignZero Negative F | |
| TEq Negative Positive F | |
| TEq Negative SignZero F | |
| TEq Negative Negative T | |
| TEq TNothing TNothing T | |
| TEq TNothing (TJust a) F | |
| TEq (I m) F F | |
| TEq (I m) T F | |
| TEq (O m) T F | |
| TEq (O m) F F | |
| TEq (TJust a) TNothing F | |
| TEq m n b => TEq (I m) (I n) b | |
| TEq (I m) (O n) F | Equality comparison. Note this does not equate numbers that are non-normalized with their normalized kin. |
| TEq m n b => TEq (O m) (O n) b | |
| TEq (O m) (I n) F | |
| TEq a b r => TEq (TJust a) (TJust b) r |