Closed jwaldmann closed 5 years ago
I agree that this is annoying. When I use ersatz
in my own projects I typically define
type MonadSAT s m = (HasSAT s, MonadState s m)
Let's just put this in ersatz
?
Yes this would improve things greatly.
It still leaks the s
?
Yes, the s
is necessarily visible. In addition to being unavoidable this means you can also have: (MonadSAT s m, HasQSAT s)
for the cases when your doing qsat stuff.
Very good, thanks for handling this, it will certainly be useful.
After
import Ersatz
, I can definebut the type of
c
isI find this
MonadState
)mtl
) in the cabal file.I understand the motivation for being polymorphic in the monad (e.g., I can use
runSAT' c
to see the clauses)I guess I am suggesting that we re-export MonadState? or invent some type synonym?