[Haskell-cafe] Best way to return Bool based on a successful pattern match?

Nikolay Amiantov ab at fmap.me
Mon Jul 13 18:25:45 UTC 2015


Hm, right, that's better.

On 07/13/2015 09:10 PM, Niklas Haas wrote:
> Concerning monad patterns, I was thinking of expressions like these:
> 
> do SomeEvent a <- streamOfEvents
>    ...
> 
> Depending on the stream monad involved (including []), this can have the
> desired semantics.

-- 
Nikolay.


More information about the Haskell-Cafe mailing list