ersatz-0.4.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.Internal.Literal

Description

 
Synopsis

Documentation

newtype Literal #

A naked possibly-negated Atom, present in the target Solver.

The literals -1 and 1 are dedicated for the constant False and the constant True respectively.

Constructors

Literal 

Fields

Instances
Eq Literal # 
Instance details

Defined in Ersatz.Internal.Literal

Methods

(==) :: Literal -> Literal -> Bool #

(/=) :: Literal -> Literal -> Bool #

Ord Literal # 
Instance details

Defined in Ersatz.Internal.Literal

Show Literal # 
Instance details

Defined in Ersatz.Internal.Literal

Codec Literal # 
Instance details

Defined in Ersatz.Codec

Associated Types

type Decoded Literal :: * #

Variable Literal # 
Instance details

Defined in Ersatz.Variable

Methods

literally :: (HasSAT s, MonadState s m) => m Literal -> m Literal #

type Decoded Literal # 
Instance details

Defined in Ersatz.Codec

literalFalse :: Literal #

The False constant. The literal -1 is dedicated for it.

literalTrue :: Literal #

The True constant. The literal 1 is dedicated for it.