Bunch of small functions in Haskell, just for practice.