The fay-jquery package

[Tags: bsd3, library]

jQuery bindings for Fay.

[Skip to ReadMe]


Versions0.2.0.0,,,,, 0.5, 0.6,,,,
Dependenciesfay-base (>1 && <1), fay-text (>=0.2) [details]
CopyrightAdam Bergmark, Brian Victor, Chris Done
AuthorAdam Bergmark, Brian Victor, Chris Done
CategoryWeb, Fay
Home page
Bug tracker
Source repositoryhead: git clone
UploadedThu Dec 26 20:52:34 UTC 2013 by AdamBergmark
UpdatedSat May 9 21:02:39 UTC 2015 by AdamBergmark to revision 1
DistributionsLTSHaskell:, NixOS:, Stackage:
Downloads3171 total (22 in last 30 days)
0 []
StatusDocs not available [build log]
All reported builds failed as of 2015-11-17 [all 5 reports]



Maintainers' corner

For package maintainers and hackage trustees

Readme for fay-jquery-0.6

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.

Still to do

Not Applicable