diff --git a/HSP/JMacro.hs b/HSP/JMacro.hs
--- a/HSP/JMacro.hs
+++ b/HSP/JMacro.hs
@@ -109,7 +109,7 @@
                     [asAttr ((fromStringLit "type" := fromStringLit "text/javascript") :: Attr Text Text)]
                     [asChild (displayT $ renderOneLine $ renderPrefixJs (show i) jstat)]
 
-instance (IntegerSupply m, EmbedAsAttr m (Attr n Text)) => EmbedAsAttr m (Attr n JStat) where
+instance (XMLGen m, IntegerSupply m, EmbedAsAttr m (Attr n Text)) => EmbedAsAttr m (Attr n JStat) where
   asAttr (n := jstat) =
       do i <- lift nextInteger
          asAttr $ (n := (displayT $ renderOneLine $ renderPrefixJs (show i) jstat))
diff --git a/README.md b/README.md
new file mode 100644
--- /dev/null
+++ b/README.md
@@ -0,0 +1,5 @@
+hsx-jmacro [![Hackage](https://img.shields.io/hackage/v/hsx-jmacro.svg)](https://hackage.haskell.org/package/hsx-jmacro) [![Build Status](https://api.travis-ci.org/Happstack/hsx-jmacro.svg?branch=master)](https://travis-ci.org/Happstack/hsx-jmacro)
+=========
+Support embedding of `jmacro` JavaScript quasi-quoter inside `hsx`.
+
+
diff --git a/hsx-jmacro.cabal b/hsx-jmacro.cabal
--- a/hsx-jmacro.cabal
+++ b/hsx-jmacro.cabal
@@ -1,5 +1,5 @@
 Name:                hsx-jmacro
-Version:             7.3.7
+Version:             7.3.8
 Synopsis:            hsp+jmacro support
 Description:         HSP allows for the use of literal XML in Haskell program text. JMacro allows for the use of javascript-syntax for generating javascript in Haskell. This library makes it easy to embed JMacro generated javascript in HSX templates.
 Homepage:            http://www.happstack.com/
@@ -11,8 +11,10 @@
 Category:            Web
 Build-type:          Simple
 Cabal-version:       >=1.6
+tested-with:         GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
 Extra-source-files:  example.hs,
-                     example2.hs
+                     example2.hs,
+                     README.md
 
 source-repository head
   type: git
