Comments (3)
Thanks for this issue.
As a side note, for non-records a Position combinator could be introduced that uses HasPosition' from generic-lens.
This sounds quite reasonable, indeed.
from capability.
Both options seem to have their inconveniences. I think naming the capability after the field is less surprising. It improves composability somehow, as per the comment linked in the issue, it's not clear that it's a useful improvement.
But having the tag be arbitrary is less verbose. For instance, we would need, to be able to write the instance for Field
to add an extra argument in Field
for the tag of the capability we're modifying.
I don't have a conclusion. It needs to be pondered carefully.
from capability.
I don't have a conclusion. It needs to be pondered carefully.
I agree, #12 explores a possible direction to implement this.
For instance, we would need, to be able to write the instance for Field to add an extra argument in Field for the tag of the capability we're modifying.
At least in #12 that doesn't seem to be the case. However, due to the functional dependency on HasState tag s m
, namely tag m -> s
, it seems that we need a second argument on Rename
, namely Rename newtag oldtag
.
from capability.
Related Issues (20)
- `listen` and `pass` breaks on error or with concurrency HOT 10
- An alternative way of managing effects in `capability` HOT 4
- Capability focusing using lens? HOT 4
- HasMask capability
- Overlapping tags HOT 8
- Consider renaming library HOT 2
- Move all modules under a single namespace HOT 2
- Document Nix cache in README HOT 1
- `zoom`, `magnify`, and `wrapError` forget other capabilities
- Push haddocks to S3 from CI and link from README HOT 1
- Don't export class methods by default HOT 4
- Elimination methods in classes should be moved HOT 10
- Associate type to tags HOT 2
- `nix-shell` fails HOT 2
- GHC 8.8 compatible version
- Cannot Lift through Stream HOT 12
- Benchmark for Capability V.S. other effect handling libraries HOT 2
- Enclosing call to 'local' resets accumulated Writer value when the values share a record HOT 3
- Running effects locally HOT 13
- Is `derive` safe? HOT 6
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 capability.