-
(Probably other functions as well, but this is where I found it.)
Let us take a completely ridiculous example as a motivator, running this all in ghci.
```haskell
λ> import Strea…
-
Several times in the past, users (including me!) have requested an F#-style pipe operator, which accepts any type `T` has the left operand, and a unary function type `F(T)` as the right operand.
``…
-
The `Observable` type is push-based. And it is great. However there are certain use-cases where a pull-based model is easier to reason about. As a fun fact, the `foldRight` operator is not implementab…
-
`.map` and `.chain` are cool for writing higher order functions over things.
Another primitive I use a lot is `.filter` and I don't know how to implement in terms of `.map` / `.ap` / `.chain`.
Is th…
-
One big question that comes up often when discussing with folks about Cycle.js is the separation of writes/reads via drivers. A familiar example of Cycle's reactive loop:
```js
function main(sourc…
-
Current stack allows to write this new syntax:
```
extra-deps:
- git: git@github.com:NorfairKing/validity.git
commit: a86dd3e4830c14c056a0d5d8712864d395d25b2a
```
the old syntax for this w…
-
Opening a new thread for discussing other useful operators that could be implemented.
Brought up by @leakyabstraction in #183:
> I would say something like runLog in scalaz-stream/fs2. Users would be…
-
Stackage breaks on a mac, after a fresh clean install :
It looks like the latest platform does do use the same places to store file, especially :
> stackage.hs: /Users/luc/.cabal/packages/hackage.has…
-
``` java
Stream Stream.in() // same as Stream.in(System::in, Charset.default()).lines()
Stream Stream.in(InputStream in)
Stream Stream.in(InputStream in, Charset charset)
Stream stream.lines() // nee…
-
Inspired by this little [tweetstorm](https://twitter.com/dan_abramov/status/710642981016100864).
## Problem: Side Effects and Composition
We discussed effects in Redux for ages here but this is the f…