make it compile on precise using ghc-7.4.1 and http-types < 0.7
Merge pull request #1380 from spechub/http-types

make it compile on precise using ghc-7.4.1 and http-types < 0.7