Closed Fl4m3Ph03n1x closed 3 years ago
The operator you're looking for is ~>>
. It's a tilde instead of a hyphen. Otherwise it's ambiguous with the ->
operator.
So the documentation is incorrect:
Or is it displayed differently in your browser?
After a closer look I have realized that my browser's zoom level, together with my font made the docs harder to read. Everything is correct.
Thank you for answer and I apologize for taking your time. Closing ticket.
Background
I am trying this library and in specific I am trying the Result Monad. The documentation mentions a function called Result.bind and I have made it work with the following code snippet:
And so far so good.
Problem
The problem arises when I try to use the bind operator. According to the docs, this operator is the same thing as the
Result.bind
function. Following this logic, the following code snippet should work:Unfortunately, this is not compiling:
At this point I strongly believe I am not understanding something from the docs or from the library.
Question
What a I doing wrong?