packages feed

jmacro 0.6.10 → 0.6.11

raw patch · 2 files changed

+9/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Language/Javascript/JMacro/Base.hs view
@@ -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]-
jmacro.cabal view
@@ -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