packages feed

yesod-fay 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+5/−10 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Language/Fay/Yesod.hs view
@@ -25,10 +25,4 @@             => command             -> (a -> Fay ())             -> Fay ()-ajaxCommand = ffi "jQuery['ajax']({\-                  \ \"url\": window['yesodFayCommandPath'], \-                  \ \"type\": 'POST', \-                  \ \"data\": { \"json\": JSON.stringify(%1) }, \-                  \ \"dataType\": 'json', \-                  \ \"success\" : %2 \-                  \})"+ajaxCommand = ffi "jQuery['ajax']({ url: window['yesodFayCommandPath'], type: 'POST', data: { json: JSON.stringify(%1) }, dataType: 'json', success : %2})"
Yesod/Fay.hs view
@@ -87,7 +87,8 @@ import           Language.Fay.Convert       (readFromFay, showToFay) import           Language.Fay.FFI           (Foreign) import           Language.Fay.Types         (CompileConfig,-                                             configDirectoryIncludes)+                                             configDirectoryIncludes,+                                             configTypecheck) import           Language.Fay.Yesod         (Returns (Returns)) import           Language.Haskell.TH.Syntax (Exp (LitE), Lit (StringL),                                              Pred (ClassP), Q, Type (VarT),@@ -251,7 +252,7 @@ fayFileReload name = do   qRunIO writeYesodFay   [|-    liftIO (compileFile config $ mkfp name) >>= \eres ->+    liftIO (compileFile config { configTypecheck = False } $ mkfp name) >>= \eres ->     (case eres of         Left e -> error $ "Unable to compile Fay module \"" ++ name ++ "\": " ++ show e         Right s -> requireJQuery >> toWidget (const $ Javascript $ fromText $ pack s))|]
yesod-fay.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                yesod-fay-version:             0.1.0.0+version:             0.1.0.1 synopsis:            Utilities for using the Fay Haskell-to-JS compiler with Yesod. description:         For initial discussion, see <http://www.yesodweb.com/blog/2012/10/yesod-fay-js>. This is a work-in-progress. homepage:            https://github.com/snoyberg/yesod-fay