diff --git a/Language/Javascript/JMacro/Base.hs b/Language/Javascript/JMacro/Base.hs
--- a/Language/Javascript/JMacro/Base.hs
+++ b/Language/Javascript/JMacro/Base.hs
@@ -405,7 +405,7 @@
     JMGVal  _ -> jtoGADT $ UnsatVal (jsUnsat_ is' x'')
     JMGId _ -> jtoGADT $ f x
     where
-        (x', (StrI l : _)) = runState (runIdentSupply $ jsSaturate_ x) is 
+        (x', (StrI l : _)) = runState (runIdentSupply $ jsSaturate_ x) is
         is' = take lastVal is
         x'' = f x'
         lastVal = readNote ("inSat" ++ un) (reverse . takeWhile (/= '_') . reverse $ l) :: Int
@@ -653,6 +653,13 @@
     toJExprFromList = ValExpr . JStr
 --        where escQuotes = tailDef "" . initDef "" . show
 
+instance ToJExpr TS.Text where
+    toJExpr t = toJExpr (TS.unpack t)
+
+instance ToJExpr T.Text where
+    toJExpr t = toJExpr (T.unpack t)
+
+
 instance (ToJExpr a, ToJExpr b) => ToJExpr (a,b) where
     toJExpr (a,b) = ValExpr . JList $ [toJExpr a, toJExpr b]
 
@@ -809,4 +816,3 @@
     | c < '\x1000' = '\\' : 'u' : '0' : hexxs
     where hexxs = showHex (fromEnum c) "" -- FIXME
 encodeJsonChar c = [c]
-
diff --git a/jmacro.cabal b/jmacro.cabal
--- a/jmacro.cabal
+++ b/jmacro.cabal
@@ -1,5 +1,5 @@
 name:                jmacro
-version:             0.6.10
+version:             0.6.11
 synopsis:            QuasiQuotation library for programmatic generation of Javascript code.
 description:         Javascript syntax, functional syntax, hygienic names, compile-time guarantees of syntactic correctness, limited typechecking. Additional documentation available at <http://www.haskell.org/haskellwiki/Jmacro>
 category:            Language
