Added the missing build dependency of http-types
Replaced 'return . snd' by a simpler fmap
Fixed warning about non-exhaustive pattern matches