Giter Site home page Giter Site logo

Poor type interaction with :<|> about magicbane HOT 3 CLOSED

akhra avatar akhra commented on June 13, 2024
Poor type interaction with :<|>

from magicbane.

Comments (3)

akhra avatar akhra commented on June 13, 2024 1

ServerT

Well now I just feel silly. :) Yep, that fixes everything.

(also wow, this little library is used in a team environment! nice)

Not a big team, but yeah! It implements a bunch of ideas we already planned to use, while not forcing anything we really want to avoid. Seems like a win all around, and by coincidence it showed up on our radar just as we were starting this project.

from magicbane.

valpackett avatar valpackett commented on June 13, 2024

Uh, I'm not sure how you went from Server EntitiesAPI to Object -> IdDynamic -> MyApp APIResult :<|> (Text -> MyApp APIResult). (Haskell inferred that for you? It's not that smart I guess :D)

Just like you have Server without transformers, you have ServerT with them:

https://github.com/myfreeweb/sweetroll/blob/be0cef7537c2fd76ec8214dd7108e4f25ada7afd/sweetroll-be/library/Sweetroll/App.hs#L16-L19

I guess this should be documented somewhere here, yeah.

(also wow, this little library is used in a team environment! nice)

from magicbane.

akhra avatar akhra commented on June 13, 2024

(By the way yes, those are the types GHC inferred when I gave it holes to fill.)

from magicbane.

Related Issues (19)

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.