boolean-normal-forms-0.0.0.1: Boolean normal form: NNF, DNF & CNF

Portabilitynon-portable
Stabilityexperimental
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone

Data.Algebra.Boolean.CoBoolean

Description

 

Synopsis

Documentation

class CoBoolean a whereSource

A class to values translable to booleans.

Methods

toBoolean :: Boolean b => a -> bSource

Cast value to Boolean.

class CoBoolean1 b whereSource

A polymorphic class of values translable to booleans.

Methods

toBooleanWith :: Boolean c => (a -> c) -> b a -> cSource

Cast value to Boolean.

toBool :: CoBoolean a => a -> BoolSource

Less polymorphic version of toBoolean.

toBoolWith :: CoBoolean1 b => (a -> Bool) -> b a -> BoolSource

Less polymorphic version of toBooleanWith.