[Haskell-cafe] Tutorial on JS with Haskell: Fay or GHCJS?

Alejandro Serrano Mena trupill at gmail.com
Wed Sep 4 10:14:55 CEST 2013


Hi,
I'm currently writing a tutorial on web applications using Haskell. I know
the pros and cons of each server-side library (Yesod, Snap, Scotty, Warp,
Happstack), but I'm looking for the right choice for client-side
programming that converts Haskell to JavaScript. I've finally come to Fay
vs. GHCJS, and would like your opinion on what's the best to tackle. My
current list of pros and cons is:

Fay
===
Pros:
- Does not need GHC 7.8
- Easy FFI with JS
- Has libraries for integration with Yesod and Snap

Cons:
- Only supports a subset of GHC (in particular, no type classes)


GHCJS
======
Pros:
- Supports full GHC
- Easy FFI with JS
- Highly opinionated point: will stay longer than Fay (but it's very
important for not having a tutorial that is old in few months)

Cons:
- Needs GHC 7.8 (but provides a Vagrant image)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130904/3971c9e8/attachment.htm>


More information about the Haskell-Cafe mailing list