faylang / fay

A proper subset of Haskell that compiles to JavaScript
https://github.com/faylang/fay/wiki
BSD 3-Clause "New" or "Revised" License
1.29k stars 86 forks source link

fay compiler #442

Closed askucher closed 7 years ago

askucher commented 7 years ago

Can I do something like

var fay = require("fay")
var js = fay.compile("Code here")
console.log(js)
bergmark commented 7 years ago

Fay can unfortunately not compile itself, but ghcjs can compile fay! https://github.com/ghcjs/ghcjs-examples/tree/master/fay-hello