Questions tagged [fay]

Fay is a programming language that forms a proper subset of Haskell and which compiles to JavaScript.

Fay is a small programming language which has the following properties:

  • A proper syntactic and semantic subset of
  • Statically typed
  • Lazy
  • Pure by default
  • Compiles to
  • Has fundamental data types (Double, String, etc.) based upon what JS can support
  • Outputs minifier-aware code for small compressed size
  • Has a trivial foreign function interface to JavaScript
  • Typechecks using GHC
33 questions
0
votes
1 answer

Example of .cabal file for fay project

I have a simple web app written with scotty. I would like to use fay to generate the front-end JS code and use shared types between the frontend and the backend. At the moment, I run my app using cabal run: in my .cabal file I defined an…
lbolla
  • 5,387
  • 1
  • 22
  • 35
0
votes
1 answer

fay Could not find module `Control.Applicative'

foo.hs import Control.Applicative then fay foo.hs returns Could not find module `Control.Applicative' It is a member of the hidden package `base'. Use -v to see a list of the files searched for. Is applicative programming possible in Fay?
Fresheyeball
  • 29,567
  • 20
  • 102
  • 164
0
votes
1 answer

cabal install trouble with fay

I am trying to run cabal install fay fay-base. However, I get the following error: src/Test/CommandLine.hs:18:9: Dynamic linking required, but this is a non-standard build (eg. prof). You need to build the program twice: once the normal way,…
Joe
  • 1,534
  • 9
  • 19
1 2
3