yesod-fay 0.4.0.4 → 0.4.0.5
raw patch · 2 files changed
+8/−1 lines, 2 files
Files
- Yesod/Fay.hs +7/−0
- yesod-fay.cabal +1/−1
Yesod/Fay.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-}@@ -272,7 +273,11 @@ } fp case result of Left e -> return (Left e)+#if MIN_VERSION_fay(0,19,0) Right (source',_,state) -> do+#else+ Right (source',state) -> do+#endif let files = stateImported state source = "\n(function(){\n" ++ source' ++ "\n})();\n" (fp_hi,fp_o) = refreshTo@@ -367,7 +372,9 @@ liftIO (compileFayFile (mkfp name) config { configTypecheck = False , configExportRuntime = exportRuntime+#if MIN_VERSION_fay(0, 19, 0) , configSourceMap = True+#endif }) >>= \eres -> do (case eres of
yesod-fay.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: yesod-fay-version: 0.4.0.4+version: 0.4.0.5 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/fpco/yesod-fay