Utilities for using the Fay Haskell-to-JS compiler with Yesod.
Haskell
Pull request Compare This branch is 72 commits ahead, 1 commit behind snoyberg:master.
Latest commit 8b20ab1 May 12, 2015 @snoyberg snoyberg Drop system-filepath
Permalink
Failed to load latest commit information.
Fay Remove Text definition from Fay.Yesod Nov 4, 2014
Yesod Drop system-filepath May 12, 2015
sample Deleted unneeded link Apr 2, 2014
.gitignore Initial code Nov 1, 2012
ChangeLog.md Drop system-filepath May 12, 2015
LICENSE Initial code Nov 1, 2012
README.md Update README.md Aug 1, 2014
Setup.hs Initial code Nov 1, 2012
yesod-fay.cabal Drop system-filepath May 12, 2015

README.md

yesod-fay

Utilities for using the Fay Haskell-to-JS compiler with Yesod.

For an example of a Yesod application with Fay integrated, have a look at the sample/ directory in this repository, or alternatively use the experimental Postgres-Fay (pf) application template (select it when running yesod init with recent versions of Yesod).

Usage with cabal sandboxes

You are highly encouraged to create a cabal sandbox for your Yesod app. This feature is available in cabal 1.18+.

Use the following command to set an environment variable (this is a workaround, needed until Fay integrates with haskell-packages, only possible after cabal 1.20 is released).

export HASKELL_PACKAGE_SANDBOX=`echo .cabal-sandbox/*-packages.conf.d/`

Make sure to run this from the root of the Yesod project.