Counter proposal: Do not include whenM and ifM

John Wiegley johnw at newartisans.com
Mon Apr 21 22:33:22 UTC 2014


>>>>> Tom Ellis <tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk> writes:

>     unless <$> doesDirectoryExist path <*>| pure (do
>         putStrLn $ "Creating directory " ++ path
>         createDirectory path)

-1.  This is not appealing to me, compared to the ease of reading and writing
the equivalent expression using unlessM.

John


More information about the Libraries mailing list