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

Refactored internals and api to reach stable state #13

Merged
merged 19 commits into from
Apr 21, 2018

Conversation

pheymann
Copy link
Owner

@pheymann pheymann commented Apr 21, 2018

I introduce some breaking changes to push this project finally into a stable state. There are breaking changes applied to the internal code to achieve:

  • a better code structure
  • simplify the code base (remove FunctionApply and ApiCompilerOps with shapeless.ops.function)
  • renamings to increase readability

And a small change in the api:

  • for the client:
// single api
compile(Api) --> derive(Api)

// list of apis
compile(Api) --> deriveAll(Api)

// now you have to pass the ClientManager directly
val foo = derive(Api)

foo(...).run[IO](cm)
  • for the server:
// single api
link(Api).to[IO] --> derive[IO](Api).from

// list of apis
link(Api).to[IO] --> deriveAll[IO](Api).from

@pheymann pheymann added the wip work in progress label Apr 21, 2018
@pheymann pheymann removed the wip work in progress label Apr 21, 2018
@pheymann pheymann merged commit ef9ad99 into master Apr 21, 2018
@pheymann pheymann deleted the refactor/core-and-api branch April 21, 2018 19:34
@pheymann pheymann mentioned this pull request Apr 21, 2018
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