Skip to content
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

crucible-jvm: Migrate never-updated fields from CodebaseState to Codebase #622

Closed
wants to merge 1 commit into from
Closed

crucible-jvm: Migrate never-updated fields from CodebaseState to Codebase #622

wants to merge 1 commit into from

Conversation

RyanGlScott
Copy link
Contributor

Lang.JVM.Codebase has a CodebaseState data type that is used within an IORef in Codebase. However, only two of the four fields of CodebaseState are ever updated with writeIORef, so it doesn't make much sense to keep the other two fields in an IORef. This patch moves them from CodebaseState to Codebase to make this more obvious.

This is purely a refactoring and has no user-visible changes in behavior.

…base

`Lang.JVM.Codebase` has a `CodebaseState` data type that is used within an
`IORef` in `Codebase`. However, only two of the four fields of `CodebaseState`
are ever updated with `writeIORef`, so it doesn't make much sense to keep the
other two fields in an `IORef`. This patch moves them from `CodebaseState` to
`Codebase` to make this more obvious.

This is purely a refactoring and has no user-visible changes in behavior.
@RyanGlScott
Copy link
Contributor Author

This was superseded by #638.

@RyanGlScott RyanGlScott closed this Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant