ekmett / ersatz

A monad for interfacing with external SAT solvers
Other
62 stars 15 forks source link

add documentation for class Variable (fix #45) #69

Closed jwaldmann closed 1 year ago

jwaldmann commented 1 year ago

I added a short text, and an example. Then #45 can be closed.

I admire the order of constraints in

exists :: (Variable a, MonadSAT s m) => m a

because this lets us write exists @A to specify a. (I found by accident that this works, and I made a guess at the reason.)