fay 0.16.0.1 → 0.16.0.2
raw patch · 4 files changed
+18/−17 lines, 4 filesdep ~haskell-src-extsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: haskell-src-exts
API changes (from Hackage documentation)
Files
- fay.cabal +4/−4
- src/Fay/Compiler/Exp.hs +1/−1
- src/Fay/Compiler/Misc.hs +12/−11
- src/Fay/Compiler/Pattern.hs +1/−1
fay.cabal view
@@ -1,5 +1,5 @@ name: fay-version: 0.16.0.1+version: 0.16.0.2 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,@@ -381,7 +381,7 @@ ghc-paths, Cabal, cpphs,- haskell-src-exts,+ haskell-src-exts >= 1.14, language-ecmascript >= 0.15, mtl, pretty-show,@@ -420,7 +420,7 @@ filepath, ghc-paths, Cabal,- haskell-src-exts,+ haskell-src-exts >= 1.14, language-ecmascript >= 0.10, mtl, process,@@ -455,7 +455,7 @@ filepath, ghc-paths, Cabal,- haskell-src-exts,+ haskell-src-exts >= 1.14, language-ecmascript >= 0.10, mtl, pretty-show,
src/Fay/Compiler/Exp.hs view
@@ -31,7 +31,7 @@ Let (BDecls decls) exp -> compileLet decls exp List [] -> return JsNull List xs -> compileList xs- Tuple xs -> compileList xs+ Tuple _boxed xs -> compileList xs If cond conseq alt -> compileIf cond conseq alt Case exp alts -> compileCase exp alts Con (UnQual (Ident "True")) -> return (JsLit (JsBool True))
src/Fay/Compiler/Misc.hs view
@@ -350,16 +350,17 @@ -- | The parse mode for Fay. parseMode :: ParseMode parseMode = defaultParseMode- { extensions = [GADTs- ,ExistentialQuantification- ,StandaloneDeriving- ,PackageImports- ,EmptyDataDecls- ,TypeOperators- ,RecordWildCards- ,NamedFieldPuns- ,FlexibleContexts- ,FlexibleInstances- ,KindSignatures]+ { extensions = map EnableExtension+ [GADTs+ ,ExistentialQuantification+ ,StandaloneDeriving+ ,PackageImports+ ,EmptyDataDecls+ ,TypeOperators+ ,RecordWildCards+ ,NamedFieldPuns+ ,FlexibleContexts+ ,FlexibleInstances+ ,KindSignatures] , fixities = Just (preludeFixities ++ baseFixities) }
src/Fay/Compiler/Pattern.hs view
@@ -31,7 +31,7 @@ PWildCard -> return body pat@PInfixApp{} -> compileInfixPat exp pat body PList pats -> compilePList pats body exp- PTuple pats -> compilePList pats body exp+ PTuple _bx pats -> compilePList pats body exp PAsPat name pat -> compilePAsPat exp name pat body PRec name pats -> compilePatFields exp name pats body pat -> throwError (UnsupportedPattern pat)