ersatz-0.3: A monad for expressing SAT or QSAT problems using observable sharing.

Copyright© Edward Kmett 2010-2014, Johan Kiviniemi 2013
LicenseBSD3
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Ersatz.Orderable

Description

 

Synopsis

Documentation

class Equatable t => Orderable t where Source

Instances for this class for arbitrary types can be automatically derived from Generic.

Minimal complete definition

Nothing

Methods

(<?) :: t -> t -> Bit infix 4 Source

Compare for less-than within the SAT problem.

(<=?) :: t -> t -> Bit infix 4 Source

Compare for less-than or equal-to within the SAT problem.

(>=?) :: t -> t -> Bit infix 4 Source

Compare for greater-than or equal-to within the SAT problem.

(>?) :: t -> t -> Bit infix 4 Source

Compare for greater-than within the SAT problem.

class GEquatable f => GOrderable f where Source

Methods

(<?#) :: f a -> f a -> Bit Source

(<=?#) :: f a -> f a -> Bit Source