Skip to content

Conversation

Shimuuar
Copy link
Contributor

  1. Drop NFData instance for DoNotUnboxNormalForm since it's not needed

  2. Revert accidental deletion of documentation in 89d7584

  3. Rework overview of module for unboxed vectors

    • Mention that vector are not necessarily unboxed

    • Enumerate all standard deriving methods. (And drop "Implementing unboxed
      vectors for new data types can be very easy", it always felt like mockery.

 - Mention that vector are not _necessarily_ unboxed

 - Enumerate all standard deriving methods. (And drop "Implementing unboxed
   vectors for new data types can be very easy", it always felt like mockery.
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.

I don't really see a need to remove NFData instance. In fact it would make sense to derive it for all newtypes in vector.

That being said, considering that DoNotUnboxNormalForm is only used for deriving and NFData is not necessary for that then I have a problem with removing it.

@Shimuuar
Copy link
Contributor Author

Largely removal is for consistence. DoNotUnboxNF & friends are intended to be used only as instance selectors with deriving via. Other such wrappers don't have any more instances than required for for deriving. For example UnboxViaPrim doesn't have Prim instance.

@Shimuuar Shimuuar merged commit 6cf987a into master Oct 31, 2024
24 checks passed
@Shimuuar Shimuuar deleted the unbox-docs branch October 31, 2024 16: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