Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | None |
Language | Haskell98 |
- class BoolValue a where
- class BoolValue a => Boolean a where
- (<&&>) :: a -> a -> a
- (<||>) :: a -> a -> a
- complement :: a -> a
- ands :: Boolean a => [a] -> a
- ors :: Boolean a => [a] -> a
- implies :: Boolean a => a -> a -> a
- equivalent :: Boolean a => a -> a -> a
- class BoolValue a => CoBoolean a where
- conjunctions :: CoBoolean a => a -> [a]
- disjunctions :: CoBoolean a => a -> [a]
- class MonoidZero a => DualMonoid a where
- newtype And a = And {
- fromAnd :: a
- newtype Or a = Or {
- fromOr :: a
Boolean algebra
equivalent :: Boolean a => a -> a -> a Source
CoBoolean (matching)
conjunctions :: CoBoolean a => a -> [a] Source
disjunctions :: CoBoolean a => a -> [a] Source
Monoids monoid
class MonoidZero a => DualMonoid a where Source
Boolean a => DualMonoid (Or a) | |
Boolean a => DualMonoid (And a) |
Functor And | |
Applicative And | |
Eq a => Eq (And a) | |
Ord a => Ord (And a) | |
Show a => Show (And a) | |
Arbitrary a => Arbitrary (And a) | |
CoArbitrary a => CoArbitrary (And a) | |
Boolean a => Monoid (And a) | |
CoBoolean a => CoMonoidZero (And a) | |
CoBoolean a => CoMonoid (And a) | |
Boolean a => MonoidZero (And a) | |
Boolean a => DualMonoid (And a) |
Functor Or | |
Applicative Or | |
Eq a => Eq (Or a) | |
Ord a => Ord (Or a) | |
Show a => Show (Or a) | |
Arbitrary a => Arbitrary (Or a) | |
CoArbitrary a => CoArbitrary (Or a) | |
Boolean a => Monoid (Or a) | |
CoBoolean a => CoMonoidZero (Or a) | |
CoBoolean a => CoMonoid (Or a) | |
Boolean a => MonoidZero (Or a) | |
Boolean a => DualMonoid (Or a) |