Skip to content

Conversation

@jorisdral
Copy link
Collaborator

I had realised some of this core library code was unused, in which case I removed the code. In other cases, where the code was only used in tests/benchmarks, I inlined the definitions and did some refactoring.

Remove `addEntries`, `addEntryMonoidal` and `addEntryNormal`. `addEntries` is
only used in tests, and can be replaced by `sconcat`. `addEntryMonoidal` and
`addEntryNormal` were only used in the `WriteBuffer` micro-benchmark, but that
code is now refactored to use `addEntry` instead.
That is, inline the injection/projections from the `D.L.I.Entry` module at their
use sites.
These functions are only used in tests. Moreover, the tests can replace these
functions by 'Semigroup' functions like 'sconcat'.
Since none of the internal code still relies on these type definitions, remove
the `D.L.I.Normal` and `D.L.I.Monoidal` modules, and move the types to the
`D.L.Normal` and `D.L.Monoidal` modules.
Copy link
Collaborator

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

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

LGTM!

@dcoutts dcoutts added this pull request to the merge queue Oct 25, 2024
Merged via the queue into main with commit e38797c Oct 25, 2024
24 checks passed
@dcoutts dcoutts deleted the jdral/cleanups branch October 25, 2024 11:27
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.

3 participants