You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code I need to test I need a source for unique comparable ids (to determine thread priorities; due to reentrancy, ThreadId is not quite good enough, I fear).
In the production code (normal IO), I can use newUnique. When testing, it seems I have to wrap it it in liftIO. This works, but is not optimal, as ideally I’d like dejafu to explore all possible priority orderings of the threads (as it does, I believe, for threadid?).
Could there be a MonadUnique abstracting over newUnique that explores that?
The text was updated successfully, but these errors were encountered:
nomeata
added a commit
to nomeata/haskell-rec-def
that referenced
this issue
Sep 12, 2022
I couldn’t quite break the previous code, but trying hard enogh it
should be possible, due to reentranc. So this seems safer.
Testing with dejafu suffers a bit, see barrucadu/dejafu#368
In the code I need to test I need a source for unique comparable ids (to determine thread priorities; due to reentrancy,
ThreadId
is not quite good enough, I fear).In the production code (normal IO), I can use
newUnique
. When testing, it seems I have to wrap it it inliftIO
. This works, but is not optimal, as ideally I’d like dejafu to explore all possible priority orderings of the threads (as it does, I believe, for threadid?).Could there be a
MonadUnique
abstracting overnewUnique
that explores that?The text was updated successfully, but these errors were encountered: