Comments (1)
Thanks a lot for the concise test case!
Indeed, this bug was introduced with 0.5.0.0, more specifically with type-changing lenses. Previously, in the simple Lens' s a
case, knowing the return type of a field update gave us the original structure's type (as they had to be the same by definition).
What happened here was that the inference algorithm for the new lenses only computed the result type from the input type, and not vice versa, but of course that's a perfectly sensible thing to want, and I've pushed a fix.
I'll make a release later today, thanks again!
from generic-lens.
Related Issues (20)
- Revert #120 HOT 3
- Issues with large tuples HOT 3
- Build failure with GHC 9.0 HOT 7
- generic-optics-2.0.0.0 testsuite failing in Stackage Nightly HOT 1
- Recursing with typed as well as types HOT 3
- A different approach to fields HOT 4
- Make Param representationally polymorphic
- generic-lens-core fails to build on GHC 9.2 HOT 5
- generic-lens allows modification of private data structures HOT 10
- Compatibility with text 2.0
- Generic Product Field Traversals HOT 4
- Reflexive instances for AsType? HOT 5
- Const and Identity instances for `HasAny` HOT 1
- Should _Ctor return an Iso for single constructor types?
- Make use of unrestricted `OverloadedLabels` HOT 1
- Typechanging `param` fails (with poor error message) when some subtype ignores the parameter
- Relax text bounds to support GHC 9.8 HOT 1
- Puzzling error message: No instance for ?Generic s? HOT 1
- Maintenance help HOT 4
- flip setField arguments to match -XOverloadedRecordUpdate desugaring HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generic-lens.