ersatz-0.4.8: 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 Source #

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 Source # 
Instance details

Defined in Ersatz.Internal.Literal

Methods

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

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

Ord Literal Source # 
Instance details

Defined in Ersatz.Internal.Literal

Show Literal Source # 
Instance details

Defined in Ersatz.Internal.Literal

Codec Literal Source # 
Instance details

Defined in Ersatz.Codec

Associated Types

type Decoded Literal :: Type Source #

Variable Literal Source # 
Instance details

Defined in Ersatz.Variable

Methods

literally :: MonadSAT s m => m Literal -> m Literal Source #

type Decoded Literal Source # 
Instance details

Defined in Ersatz.Codec

literalFalse :: Literal Source #

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

literalTrue :: Literal Source #

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