-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different reifyGraph behavior between data-reify-0.6.1 and 0.6.2 #11
Comments
One possible way to remedy this is to turn the
This restores the original behavior of the program in #11 (comment), and it makes the behavior of each of the existing test cases coincide between |
As for why this is the correct thing to do, let's first examine the old type signature for
There are three
Critically, each of these arguments use Line 57 in efa0565
Suppose that One observation about the old type signature for
Conceptually, however, there is no reason why we have to use the same I bring up the topic of splitting up this argument because separating the two roles of the
The first two Earlier, I mentioned that we could pre-populate the map of stable names in one invocation of
Note how the first argument to As a final note, observe that if the I'll submit a PR which implements this fix soon, along with some sort of way to test for this in a regression suite. ¹ We could also imagine using |
This implements the fix for #11 described in #11 (comment). That is, it turns the `IntSet` argument to `findNodes` into an `MVar IntSet`. Besides the bugfix itself, this commit refactors the internals of `Data.Reify` slightly to make it slightly more comprehensible at a glance.
This implements the fix for #11 described in #11 (comment). That is, it turns the `IntSet` argument to `findNodes` into an `MVar IntSet`. Besides the bugfix itself, this commit refactors the internals of `Data.Reify` slightly to make it slightly more comprehensible at a glance.
See #12. |
This implements the fix for #11 described in #11 (comment). That is, it turns the `IntSet` argument to `findNodes` into an `MVar IntSet`. Besides the bugfix itself, this commit refactors the internals of `Data.Reify` slightly to make it slightly more comprehensible at a glance.
#8 appears to have changed the user-visible behavior of the
reifyGraph
function. Here is a minimal example that demonstrates the difference in behavior between 0.6.1 and 0.6.2:With
data-reify-0.6.1
, this outputs:But with
data-reify-0.6.2
, this outputs:Among other things, this breaks ekmett/ad#89.
The text was updated successfully, but these errors were encountered: