mios-1.2.1: A Minisat-based SAT solver in Haskell

Safe HaskellTrustworthy
LanguageHaskell2010

SAT.Solver.Mios.Data.Singleton

Contents

Description

A fast(est) mutable data

Synopsis

Bool

type BoolSingleton = IOVector Bool Source #

mutable Bool

getBool :: BoolSingleton -> IO Bool Source #

returns the value

setBool :: BoolSingleton -> Bool -> IO () Source #

sets the value

modifyBool :: BoolSingleton -> (Bool -> Bool) -> IO () Source #

modifies the value

Int

type IntSingleton = IOVector Int Source #

mutable Int

getInt :: IntSingleton -> IO Int Source #

returns the value

setInt :: IntSingleton -> Int -> IO () Source #

sets the value

modifyInt :: IntSingleton -> (Int -> Int) -> IO () Source #

modifies the value

Double

type DoubleSingleton = IOVector Double Source #

mutable Double

getDouble :: DoubleSingleton -> IO Double Source #

returns the value

setDouble :: DoubleSingleton -> Double -> IO () Source #

sets the value

modifyDouble :: DoubleSingleton -> (Double -> Double) -> IO () Source #

modifies the value