Modified to work with GHC 7.8.x

* Modified version constraints.
* Changed to use SingI instead of SingRep.