Copyright | (c) Masahiro Sakai 2011 |
---|---|
License | BSD-style |
Maintainer | masahiro.sakai@gmail.com |
Stability | provisional |
Portability | non-portable (FlexibleInstances, MultiParamTypeClasses, FunctionalDependencies) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Arithmetic relations
- data RelOp
- flipOp :: RelOp -> RelOp
- negOp :: RelOp -> RelOp
- showOp :: RelOp -> String
- evalOp :: Ord a => RelOp -> a -> a -> Bool
- data Rel e = Rel e RelOp e
- class IsRel e r | r -> e where
- (.<.) :: IsRel e r => e -> e -> r
- (.<=.) :: IsRel e r => e -> e -> r
- (.>=.) :: IsRel e r => e -> e -> r
- (.>.) :: IsRel e r => e -> e -> r
- (.==.) :: IsRel e r => e -> e -> r
- (./=.) :: IsRel e r => e -> e -> r
Relational operators
flipOp :: RelOp -> RelOp Source
flipping relational operator
rel (flipOp op) a b
is equivalent to rel op b a
negOp :: RelOp -> RelOp Source
negating relational operator
rel (negOp op) a b
is equivalent to notB (rel op a b)
Relation
Atomic formula