@hackage fay0.6.0.0

A compiler for Fay, a Haskell subset that compiles to JavaScript.

Fay is a proper subset of Haskell which can be compiled (type-checked) with GHC, and compiled to JavaScript. It is lazy, pure, with a Fay monad, an FFI, tail-recursion optimization (experimental). It implements no type system, for type-checking you should use GHC.

Documentation

See documentation at http://fay-lang.org/ or build your own documentation with:

$ cabal unpack fay
$ cd fay-*
$ cabal install
$ dist/build/fay-docs/fay-docs

Examples

See http://fay-lang.org/#examples.

Release Notes

  • Added Compiler.compileFile to compile a file without writing to disk

  • abstracted out constructorName function

  • fix fixed RecConstr

  • Fix RecConstr to avoid name conflicts.

  • BREAKING CHANGES, READ THIS COMMIT.

  • Added the new flags to the cmdline docs

  • --output=file to specify where the result should be placed

  • Exporting Language.Fay.Compiler

  • Added the cmdline flag -include=dir1[,..dirN] which will look in the specified directories for imports

  • CompileConfig now contains configDirectoryIncludes allowing imports to be located separately from where the base file

  • Add Paths_fay to cabal.

  • Update docs and fix runtime regressions.

  • Fix FFI callbacks when too many arguments are provided.

  • Fix patterns snippet.

  • Fixed a bug where would produce invalid code. And some minor refactorings.

  • Records are now stored in CompileState, _fields dropped from record representation

See full history at: https://github.com/chrisdone/fay/commits