Removed reliance on LambdaCase (which breaks build with ghc 7.4).
Fixed haddock warnings.