[Haskell-cafe] How to make such code?
aslatter at gmail.com
Thu Dec 30 04:43:47 CET 2010
You're looking for 'when' as in:
> condition <- something
> when condition $ other things
> more things
It is quite handy.
On Wed, Dec 29, 2010 at 10:14 PM, Magicloud Magiclouds
<magicloud.magiclouds at gmail.com> wrote:
> In Haskell's way, normally, we write:
> if condition then
> But I just heard that, in fancy way, we could do:
> ifNeedToDo >> doIt
> May I have any clue here?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe