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

Optimize replicateM and update CI #465

Merged
merged 7 commits into from
Sep 9, 2023
Merged

Conversation

Shimuuar
Copy link
Contributor

This PR turn out to be a bit of kitchen sink

  1. Use existing munstream instead of hand-rolled loop in replicateM for mutable vectors. It also avoid double initialization of buffer with new (noticed by @dmalkr)
  2. Small cleanups in test suite: add default value for TestEq and default implementation for equals method of TestData type class.
  3. Then I noticed that we only test GHC up to 9.2 on CI. I've update CI config

@Shimuuar Shimuuar changed the title Unsafe new Optimize replicateM and update CI Aug 27, 2023
@Shimuuar
Copy link
Contributor Author

And look at it! Doctests blew up again. I'll look into it tomorrow

I don't know what am I doing really. But doctests now work
@Shimuuar
Copy link
Contributor Author

I managed to fix doctests on GHC 9.4 & 9.6. It's a big hack but it does work. It seems there's state leakage between running tests on different modules and it caused tests to fail

Copy link
Contributor

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find about doctests.

LGTM!

@Shimuuar Shimuuar merged commit 4f32de0 into haskell:master Sep 9, 2023
19 checks passed
@Shimuuar Shimuuar deleted the unsafeNew branch September 9, 2023 09:05
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.

2 participants