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

[ bsd3, development, fay, library, program, web ] [ Propose Tags ]

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.


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


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.


  • 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


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 0.18.1,,,, 0.19,,, 0.19.1,,, 0.19.2,,,,,,,,,,,,,,,, 0.21.1, 0.21.2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Dependencies base (>=4 && <4.7), blaze-html (>=0.5 && <, blaze-markup, bytestring, data-default, directory, filepath, haskell-src-exts (<1.14), HUnit, json, language-javascript, mtl, pretty-show, process, safe, time [details]
License BSD-3-Clause
Copyright 2012 Chris Done
Author Chris Done
Maintainer chrisdone@gmail.com
Revised Revision 4 made by AdamBergmark at 2015-08-14T15:20:57Z
Category Development
Home page http://fay-lang.org/
Uploaded by ChrisDone at 2012-08-10T23:12:11Z
Distributions NixOS:
Executables fay-docs, fay-tests, fay
Downloads 96846 total (222 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]