Code Monkey home page Code Monkey logo

Comments (2)

yanns avatar yanns commented on July 17, 2024 1

Thanks for the report.
Indeed, the scala compiler seems to transform the F[_] into a LeafAction too early.
Maybe I'll need to push the implicit conversion into a trait to give it less priority.
I can try that later.

I'm not sure if we would have the same issue when using Future.

For the moment, as a workaround, we can add type hints.
Or better, you could extract your logic into another function returning the F[_] and only call this function from sangria. That way, you would make sure that your business logic is not coupled with sangria.

from sangria.

roman0x58 avatar roman0x58 commented on July 17, 2024

Thanks for the tips, @yanns! Decoupling sangria and the business layers indeed seems like the best option. However, implementing this would require a significant amount of work due to our solid codebase. For now, I think I'll stick with the cats dispatcher.

from sangria.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.