rec-def-0.2.2: Recursively defined values
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Propagator.Class

Description

This module provides the Propagator class

Synopsis

Documentation

class Propagator p x | p -> x where Source #

The Propagator class defines some functions shared by different propagator implementations. This backs the generic Data.Propagator.Purify wrapper.

Methods

newProp :: IO p Source #

newConstProp :: x -> IO p Source #

freezeProp :: p -> IO () Source #

readProp :: p -> IO x Source #

Instances

Instances details
Propagator P2 Bool Source # 
Instance details

Defined in Data.Propagator.P2

Bottom a => Propagator (Prop a) a Source # 
Instance details

Defined in Data.Propagator.Naive

Methods

newProp :: IO (Prop a) Source #

newConstProp :: a -> IO (Prop a) Source #

freezeProp :: Prop a -> IO () Source #

readProp :: Prop a -> IO a Source #