Copyright | © Oleg Grenrus 2014 |
---|---|
License | MIT |
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- class CoBoolean a where
- class CoBoolean1 b where
- toBooleanWith :: Boolean c => (a -> c) -> b a -> c
- toBool :: CoBoolean a => a -> Bool
- toBoolWith :: CoBoolean1 b => (a -> Bool) -> b a -> Bool
Documentation
class CoBoolean a where Source #
A class to values translable to booleans.
Instances
CoBoolean Bool Source # | |
CoBoolean (Maybe a) Source # | |
CoBoolean (Neg a) Source # | |
CoBoolean a => CoBoolean (FreeBoolean a) Source # | |
Defined in Data.Algebra.Boolean.FreeBoolean toBoolean :: Boolean b => FreeBoolean a -> b Source # | |
CoBoolean a => CoBoolean (NNF a) Source # | |
CoBoolean a => CoBoolean (NNF a) Source # | |
CoBoolean a => CoBoolean (DNF a) Source # | |
CoBoolean a => CoBoolean (DNF a) Source # | |
CoBoolean a => CoBoolean (CNF a) Source # | |
CoBoolean a => CoBoolean (CNF a) Source # | |
(CoBoolean f, CoBoolean g) => CoBoolean (Either f g) Source # | |
class CoBoolean1 b where Source #
A polymorphic class of values translable to booleans.
toBooleanWith :: Boolean c => (a -> c) -> b a -> c Source #
Cast value to Boolean
.
Instances
toBoolWith :: CoBoolean1 b => (a -> Bool) -> b a -> Bool Source #
Less polymorphic version of toBooleanWith
.