diff --git a/xml-types.cabal b/xml-types.cabal
--- a/xml-types.cabal
+++ b/xml-types.cabal
@@ -1,5 +1,5 @@
 name: xml-types
-version: 0.3.5
+version: 0.3.6
 synopsis: Basic types for representing XML
 license: MIT
 license-file: license.txt
@@ -19,7 +19,7 @@
 source-repository this
   type: git
   location: https://john-millikin.com/code/haskell-xml-types/
-  tag: xml-types_0.3.5
+  tag: xml-types_0.3.6
 
 library
   ghc-options: -Wall
@@ -27,6 +27,8 @@
 
   if impl(ghc >= 7.2)
     extensions: DeriveGeneric, StandaloneDeriving
+  if impl(ghc >= 7.2) && impl(ghc < 7.6)
+    build-depends: ghc-prim
 
   build-depends:
       base >= 3.0 && < 5.0
