Comments (3)
Something like lmap (const r) builder
seems like it would cause trouble by modifying the immutable record r
.
from purescript-record.
I'm not sure this is doable, actually. The problem is that, as I understand it, a Builder a b
is a function a -> b
which is guaranteed to use its argument exactly once, but allowing you to lmap
with any old function could break that guarantee. I've haven't been able to come up with an example of this breaking things yet but I expect it can be done.
@paf31 does this sound reasonable?
from purescript-record.
@hdgarrood I see what you're saying.
from purescript-record.
Related Issues (20)
- stack-safe Builder HOT 1
- unsafeModify HOT 1
- unsafeFreeze, unsafeThaw HOT 1
- deprecate verbose ST function names HOT 1
- modifySTRecord HOT 1
- Builder.merge could be "safer" HOT 1
- insert and forall in record HOT 2
- Is equality on records order independent? HOT 1
- Record kind as type parameter? Bug? HOT 2
- Create a partially applied record constructor HOT 7
- Alternative `build` for building a record from scratch HOT 1
- Argument precedence of Record and Builder merging HOT 6
- Bug: `union` causes type confusion HOT 3
- Add type which represents and provide instances for homogeneous records HOT 2
- drop fields HOT 2
- Add new and run to Record.ST HOT 2
- Is the ST module at all useful? HOT 5
- Add `mergeFlipped` HOT 5
- Thoughts on replacing Proxy with VTA? HOT 3
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 purescript-record.