Problem #145 in Haskell.
Problem #97 in Haskell.
Problem #99 in Haskell.

Learned some interesting things about numeric types.