Giter Site home page Giter Site logo

Comments (5)

travis-leith avatar travis-leith commented on May 25, 2024

I would also like to see this. For instance I can't work out why the generated setter is 'b -> 'a -> 'b instead of 'a -> 'b -> 'b as seen in Aether.
I would like to be able to use all the utility functions in Aether but the lenses generated here have the wrong signature. So now I am porting Aether (just for me) to match these signatures. But I suspect there is some intended usage pattern that motivates the signature in myriad, I'm just not seeing it.

@7sharp9 could you provide a teaser here of what the usage looks like using this signature?

from myriad.

7sharp9 avatar 7sharp9 commented on May 25, 2024

@travis-leith MAyeb in Aether they are flipped to promote piping the record into the setter.

from myriad.

7sharp9 avatar 7sharp9 commented on May 25, 2024

See https://github.com/MoiraeSoftware/myriad/blob/master/test/Myriad.IntegrationPluginTests/Tests.fs#L103-L123 for details on usage.

from myriad.

travis-leith avatar travis-leith commented on May 25, 2024

Having gone through the exercise of re-implementing the various utilities to cater for the Myriad setter, having it flipped does lead to neater code in this regard.

from myriad.

7sharp9 avatar 7sharp9 commented on May 25, 2024

Inactive so closing.

from myriad.

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.