fay 0.20.1.0 → 0.20.1.1
raw patch · 5 files changed
+19/−2 lines, 5 filesdep ~aesondep ~tasty-hunit
Dependency ranges changed: aeson, tasty-hunit
Files
- CHANGELOG.md +4/−0
- fay.cabal +1/−1
- src/Fay.hs +1/−1
- tests/MainThunk.hs +10/−0
- tests/MainThunk.res +3/−0
CHANGELOG.md view
@@ -2,6 +2,10 @@ See full history at: <https://github.com/faylang/fay/commits> +#### 0.20.1.1 (2014-06-17)++* Don't cache the `main` thunk in the generated `main` call.+ ### 0.20.1.0 (2014-06-14) * Add default case for UTCTime in Fay.Convert using the aeson instances. Note that this serializes to a json string so you won't be able to deserialize it as a separate type (such as Date) when using `Automatic` in Fay.
fay.cabal view
@@ -1,5 +1,5 @@ name: fay-version: 0.20.1.0+version: 0.20.1.1 synopsis: A compiler for Fay, a Haskell subset that compiles to JavaScript. description: Fay is a proper subset of Haskell which is type-checked with GHC, and compiled to JavaScript. It is lazy, pure, has a Fay monad,
src/Fay.hs view
@@ -144,7 +144,7 @@ ,jscode ,if not (configLibrary config) then unlines [";"- ,"Fay$$_(" ++ modulename ++ ".main);"+ ,"Fay$$_(" ++ modulename ++ ".main,true);" ] else "" ]
+ tests/MainThunk.hs view
@@ -0,0 +1,10 @@+import FFI++main = do putStrLn "Hey ho!"+ setTimeout 500 doThing+ doThing++doThing = putStrLn "Hello, World!"++setTimeout :: Int -> (Fay ()) -> Fay ()+setTimeout = ffi "(function (f,i) { var id = setTimeout(function () { f(id); }, i); return id; })(%2,%1)"
+ tests/MainThunk.res view
@@ -0,0 +1,3 @@+Hey ho!+Hello, World!+Hello, World!