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

refactor: move the Primer API into its own package #1087

Merged
merged 2 commits into from
Jul 4, 2023
Merged

Conversation

dhess
Copy link
Member

@dhess dhess commented Jun 30, 2023

We would like to run evaluations in the browser, using GHC 9.6's support for Wasm and JavaScript targets. We won't need the API wrapper for that, nor type-checking, so this is the first step towards a more fine-grained set of packages in order to reduce the amount of code we need to compile for a Wasm/JavaScript target.

This is a pure refactor. No tests or functionality have been removed, nor any new functionality or tests added. We've simply shuffled things around a bit, and moved some additional code into primer-testlib so that it can be reused in primer-api's tests.

@dhess dhess requested a review from a team July 1, 2023 14:30
@dhess
Copy link
Member Author

dhess commented Jul 2, 2023

Assuming there are no major objections to, or omissions in, this PR, could someone please add it to the merge queue once it's been reviewed and accepted?

primer/src/Primer/JSON.hs Outdated Show resolved Hide resolved
primer-api/primer-api.cabal Outdated Show resolved Hide resolved
Copy link
Contributor

@brprice brprice left a comment

Choose a reason for hiding this comment

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

I have only two minor comments, which I'll fix and then add this to the merge queue

We would like to run evaluations in the browser, using GHC 9.6's
support for Wasm and JavaScript targets. We won't need the API wrapper
for that, nor type-checking, so this is the first step towards a more
fine-grained set of packages in order to reduce the amount of code we
need to compile for a Wasm/JavaScript target.

This is a pure refactor. No tests or functionality have been removed,
nor any new functionality or tests added. We've simply shuffled things
around a bit, and moved some additional code into `primer-testlib` so
that it can be reused in `primer-api`'s tests.

Signed-off-by: Drew Hess <src@drewhess.com>
Signed-off-by: Ben Price <ben@hackworthltd.com>
Signed-off-by: Ben Price <ben@hackworthltd.com>
@brprice brprice added this pull request to the merge queue Jul 4, 2023
Merged via the queue into main with commit 5019344 Jul 4, 2023
@brprice brprice deleted the dhess/primer-api branch July 4, 2023 14:18
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