The fay-dom package

[Tags: bsd3, library]

DOM FFI wrapper library for Fay

[Skip to ReadMe]


Versions0.2.0.0, 0.3, 0.4, 0.5,
Dependenciesfay-base (>= && <0.21) [details]
Copyright2012 Adam Bergmark
AuthorAdam Bergmark
CategoryWeb, Fay
Home page
Bug tracker
Source repositoryhead: git clone
UploadedWed Feb 11 09:45:54 UTC 2015 by AdamBergmark
DistributionsLTSHaskell:, NixOS:, Stackage:
Downloads1567 total (8 in last 30 days)
0 []
StatusDocs available [build log]
Last success reported on 2015-05-19 [all 2 reports]




Maintainers' corner

For package maintainers and hackage trustees

Readme for fay-dom-


A FFI wrapper for DOM functions for use with Fay. It includes functions for the more commonly used DOM features. See fay-jquery if you want wrappers for jQuery.


Just install it with cabal:

$ cabal install fay-dom

Then include it at the top of your file.hs:

import DOM

fay-dom uses fay-text so you probably want to enable OverloadedStrings and RebindableSyntax when using this package.

Finally, build the javascript including the package, as explained on the wiki:

$ fay --package fay-text,fay-dom file.hs

Development Status

Rudimentary at the moment. Functions will be added when people find the need for them. A lot of what this library could do already exists in fay-jquery, but if anyone wants to write Fay without jQuery feel free to add whatever is missing.


Fork on!

Any enhancements are welcome.

The github master might require the latest fay master, available at faylang/fay.