fay-dom: DOM FFI wrapper library for Fay

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

DOM FFI wrapper library for Fay

[Skip to Readme]




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

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS], 0.3, 0.4, 0.5,
Change log CHANGELOG.md
Dependencies fay-base (>= && <0.22) [details]
License BSD-3-Clause
Copyright 2012 Adam Bergmark
Author Adam Bergmark
Maintainer adam@bergmark.nl
Revised Revision 1 made by AdamBergmark at 2018-06-13T11:43:58Z
Category Web, Fay
Home page https://github.com/faylang/fay-dom
Bug tracker https://github.com/faylang/fay-dom/issues
Source repo head: git clone https://github.com/faylang/fay-dom.git
Uploaded by AdamBergmark at 2015-02-11T09:45:54Z
Reverse Dependencies 3 direct, 1 indirect [details]
Downloads 5378 total (15 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-05-19 [all 2 reports]

Readme for fay-dom-

[back to package description]


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.