Add class constraints for ghc-7.6.1 compatibility.
Merge pull request #13 from kosmikus/ghc-7.6-compat

Add class constraints for ghc-7.6.1 compatibility.