satchmo-2.9.9.4: SAT encoding monad
Safe HaskellSafe-Inferred
LanguageHaskell2010

Satchmo.Unary

Synopsis

Documentation

data Number Source #

Instances

Instances details
(Monad m, Decode m Boolean Bool) => Decode m Number Integer Source # 
Instance details

Defined in Satchmo.Unary.Data

Methods

decode :: Number -> m Integer Source #

(Monad m, Decode m Boolean Bool) => Decode m Number Int Source # 
Instance details

Defined in Satchmo.Unary.Data

Methods

decode :: Number -> m Int Source #

bits :: Number -> [Boolean] Source #

contents is [ 1 .. 1 0 .. 0 ] number of 1 is value of number

number :: MonadSAT m => Int -> m Number Source #

declare a number with range (0, w)