News for hackers. Stuff that matters.
Re:Why functional programming matters (1990) [pdf] by dllthomas on Thursday May 07, 2015 @04:20PM (#9507982)
I think your "while" is "when".
Re:Why functional programming matters (1990) [pdf] by tel on Thursday May 07, 2015 @05:54PM (#9508590)
Oh, thanks! Good catch. Here's `while`

    while :: Monad m => m Bool -> m a -> m ()
    while conde bodye = do
      cond <- conde
      if cond then bodye >> while conde bodye else return ()