Comments (4)
Unlike filter
, the function union
is not in the Prelude, so you have to write import Data.List
anyway and it's easier to add a qualified
keyboard or hide imported functions.
I would really like to avoid giving prefixes to functions that are essentially the same.
Dropping union
altogether in favor of the Monoid
class would work, but this would make the documentation harder to understand. Sometimes, it's nice to have an explicit name for the monoid operation.
from reactive-banana.
(Oops, accidentally closed the issue by pressing the wrong button.)
from reactive-banana.
Yes, it is ugly to have a random subset of functions end with E. The only palatable thing I can think of of that form would be to suffix everything with E or B, and that's hardly better.
I agree that it can be nice to have a name for the Monoid operation, though the same documentation problem does exist with Behavior's Applicative instance. (I might be more on the side of Monoid if mappend
was called (<>)
:))
This isn't really a big deal, of course; just something I ran into unexpectedly. I'll leave the issue for you to close if you think it's fine.
(I keep accidentally closing issues, too.)
from reactive-banana.
Oh well, it looks like there's no perfect solution at the moment. I'll close this for now, maybe the future will bring some insights. But thanks for bringing it up anyway. :-)
from reactive-banana.
Related Issues (20)
- `reactive-banana` can't be compiled on GHC 9.2 HOT 2
- I created a Matrix channel HOT 8
- An interesting `Applicative`-ish way of combining `Event`s HOT 4
- Add `MonadMoment` instances for all monad transformers in `transformers` HOT 1
- Release 1.3.0.0 HOT 3
- Join Stackage HOT 4
- `Behavior` constantly re-evaluating when caching is expected HOT 4
- Unexpected memory growth HOT 6
- Event handler not seeing early events. HOT 12
- `Behavior`s can hold onto more memory than they need to HOT 2
- Memory leak with dynamic behavior switching HOT 16
- Gloss GUI events not responding HOT 5
- Idea: add a combinator to track when a behavior is a different value HOT 14
- Call `unregister` for garbage collected events made by `AddHandler`. HOT 9
- Discrepancy in model and implementation HOT 15
- Optimize representation of Latch HOT 1
- Not compatible with these-1.2 (disallowed) HOT 2
- Simultaneous events can have undefined behavior within execute HOT 2
- source-code formatter? HOT 2
- Accept deepseq-1.5 HOT 2
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 reactive-banana.