duog / generic-lens-labels Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
It would be great to assert that these also get inlined.
generic-lens 0.5.1 now has this module copied over, although not exactly.
@duog, I wrote down my thoughts in this comment on the current overlapping instance, what do you think?
kcsongor/generic-lens#29 (comment)
/cc @3noch @tonyday567
I'm noticing a trend where parameterized records usually can't infer the proper label. Using field @"label"
works fine consistently. I need to find some reproducible cases so I'll report back as I find them.
data Record = Record{
func :: Int -> Int -> Bool
} deriving Generic
r = Record (<)
-- works
r ^. field @"func"
-- doesn't work
r ^. #func
…either by uploading the README or by including the example in the haddocks or cabal description.
Cheers! :)
Any plans to get this into stackage?
I appreciate the IsLabel orphan issue but life's too short, I consider TH worse, and I really like the API.
thanks. This is a great discovery.
Tony
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.