haste-compiler icon indicating copy to clipboard operation
haste-compiler copied to clipboard

A GHC-based Haskell to JavaScript compiler

Results 63 haste-compiler issues
Sort by recently updated
recently updated
newest added

More info here: https://github.com/fpco/lts-haskell#readme http://www.stackage.org/

If we consider the following brief example: ``` haskell {-# LANGUAGE OverloadedStrings #-} import Haste.Foreign listHead::[Int]->IO Int listHead = ffi "(function(lst) {return lst[0];})" x = [17, 23, 14::Int] main =...

I'd be glad to submit that along with a PR, but since I don't have much time for that as of now, I figured someone might be able to do...

feature

I would like to use the `ffi` function to make functions that work in the `Client` monad. Both as arguments and results.

feature

This example makes my Chrome tab hang: ``` module Main where import Haste import Text.JSON.Generic main = alert (encodeJSON (Just True)) ```

GHCJS supports ``` haskell foreign import javascript safe "foo($1, $c);" foo :: A -> IO B ``` where `$c` stands for a continuation/callback function such that ``` haskell do {...

feature

This program: ``` import Prelude {-import Control.Concurrent.Timer-} data Qt = Qt {qx :: Double, qy :: Double, qz :: Double, qw :: Double} deriving (Show) qmul a b = Qt...

Using [this](https://dl.dropboxusercontent.com/u/30225560/pqueue-1.2.1-haste.tar.gz) patched `pqueue` package (see #195) and a patched [reactive-banana](https://github.com/pkamenarsky/reactive-banana) (without the `hashable` dependency) the following code: ``` {-# LANGUAGE RankNTypes #-} import Haste import Reactive.Banana as R import...

I'm getting this error when I run haste-boot on MacOS X 10.9.3 with GHC 7.6.3 and cabal-install 1.20.0.2.

If a project's .cabal has `Build-type: Custom` the package will fail to install and give misleading errors like: ``` hastec: Failed to load interface for `Data.Time.Calendar.Gregorian' no package matching `time-1.4.0.1'...

haste-inst/boot