toysolver-0.3.0: Assorted decision procedures for SAT, Max-SAT, PB, MIP, etc

Copyright(c) Masahiro Sakai 2014
LicenseBSD-style
Maintainermasahiro.sakai@gmail.com
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ToySolver.Data.BoolExpr

Contents

Description

Boolean expression over a given type of atoms

Synopsis

BoolExpr type

data BoolExpr a Source

Boolean expression over a given type of atoms

Constructors

Atom a 
And [BoolExpr a] 
Or [BoolExpr a] 
Not (BoolExpr a) 
Imply (BoolExpr a) (BoolExpr a) 
Equiv (BoolExpr a) (BoolExpr a) 
ITE (BoolExpr a) (BoolExpr a) (BoolExpr a) 

Operations

fold :: Boolean b => (atom -> b) -> BoolExpr atom -> b Source