BSD-3-Clause licensed by Adam Bergmark
Maintained by [email protected]
This version can be pinned in stack with:fay-dom-0.5.0.1@sha256:0bed15b1f6dc5a648a3b751cb4e06cc2b2f4c8ff7ad0150a373bdf63859b15d2,884

Module documentation for 0.5.0.1

Depends on 1 package(full list with versions):
Used by 1 package in lts-2.22(full list with versions):

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.

Usage

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.

Contributions

Fork on!

Any enhancements are welcome.

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

Changes

0.5.0.1

  • Allow fay-base 0.20.*

0.5

  • use Data.Text from fay-base and drop dependency on fay-text.

0.4

  • Changed to use fay-text instead of String (Willem van den Ende)