Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A propagator for the two-point lattice
Documentation
A type for propagators for the two-point lattice, consisting of bottom and top
setTop :: P2 -> IO () Source #
Set a propagator to top.
If it was bottom before, runs the actions queued with whenTop
. It does so
after setting the propagator to top, so that cycles are broken.
whenTop :: P2 -> IO () -> IO () Source #
whenTop p act
runs act
if p
is already top, or after setTop p
is run