fay-jquery: jQuery bindings for Fay.

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

jQuery bindings for Fay.

[Skip to Readme]
Versions,,,,, 0.5, 0.6,,,,
Change log CHANGELOG.md
Dependencies fay-base (>1 && <1), fay-text (>=0.2) [details]
License BSD-3-Clause
Copyright Adam Bergmark, Brian Victor, Chris Done
Author Adam Bergmark, Brian Victor, Chris Done
Maintainer adam@bergmark.nl
Revised Revision 1 made by AdamBergmark at Sat May 9 21:02:39 UTC 2015
Category Web, Fay
Home page https://github.com/faylang/fay-jquery
Bug tracker https://github.com/faylang/fay-jquery/issues
Source repo head: git clone https://github.com/faylang/fay-jquery.git
Uploaded by AdamBergmark at Thu Dec 26 20:52:34 UTC 2013
Distributions NixOS:
Downloads 5484 total (31 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-09 [all 7 reports]
Hackage Matrix CI


  • JQuery


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

Readme for fay-jquery-0.6

[back to package description]

Fay jQuery


jQuery bindings for Fay. This project is experimental, but seems to work pretty well!

The short-term goals of this project are to help discover the real world requirements of Fay and to invite bikeshedding over the fay-jquery API. That means that names and types may change in rapid and annoying ways until conventions settle down.

The one consistent convention in the library is that the jQuery object on which methods operate is the last parameter to every function. This allows simple monadic composition:

makeSquare :: JQuery -> Fay JQuery
makeSquare = addClass "square" >=>
             setWidth 400 >=>
             setHeight 400

main :: Fay ()
main = do
    makeSquare $ select "#elementToMakeSquare"
    return ()



cabal install fay-text fay-jquery

Compile your file:

fay --package fay-jquery,fay-text MyFile.hs

Supported API calls

This binding is a work in progress. We're adding calls by section of the jQuery docs. There is some overlap in the sections, but the following sections are (mostly) complete.

  • Ajax
  • Attributes
  • Core
  • CSS
  • Effects (Basic, Fading)
  • Manipulation
  • Traversing
  • Events

Still to do

  • Data
  • Deferred Object
  • Effects (Custom, Sliding)
  • Forms
  • Internals
  • Miscellaneous
  • Offset
  • Plugins
  • Properties
  • Utilities

Not Applicable

  • Selectors