Well I'd never heard of Wordnik but this is very cool and I'll be using it. This is like a respectable Dictionary.com+ Urban Dictionary. I don't see the category theory definition of a monad on it, though. Which is somewhat odd.
case fileExists "sausage.txt"
True -> putStrLn "Gonna do something with the sausage."
False -> putStrLn "Woop."
And/or if do fileExists "sausage.txt"
then putStrLn "Gonna do something!"
else putStrLn "Woop."
Or lambda with alternate lambda cases. (\case of (Just a) -> a; Nothing -> b)
I wrote a little mini-lang to do this to see how much I liked it. I liked it a lot, Lou! (define (add-squares x y)
(+ (* x x) (* y y)))
This is a program which evaluates a squares-adding language in which we have a limited number of expressions. Such as: (add-squares 2 4)
(add-squares (add-squares 4 3) 5)
etc.