Re: ANNOUNCE: GHC 7.10.2 Release Candidate 2

2015-07-14 Thread Luite Stegeman
On Fri, Jul 3, 2015 at 8:49 AM Austin Seipp aus...@well-typed.com wrote: We are pleased to announce the first release candidate for GHC 7.10.2: I found out earlier today that Template Haskell support for the prim and javascript calling conventions (new in 7.10) was still missing a few cases,

Re: GHCJS now runs Template Haskell on node.js - Any interest in out of process TH for general cross compilation?

2014-07-05 Thread Luite Stegeman
, and repeat the process til no TH expansions exist and finally that is the result you pass to the compiler. John On Sat, Jul 5, 2014 at 1:09 PM, Luite Stegeman stege...@gmail.com wrote: How would you do reification with that approach? On Sat, Jul 5, 2014 at 9:59 PM, John Meacham j

Re: GHCJS now runs Template Haskell on node.js - Any interest in out of process TH for general cross compilation?

2014-07-04 Thread Luite Stegeman
On Thu, Jul 3, 2014 at 6:18 PM, Simon Peyton Jones simo...@microsoft.com wrote: Luite I lack the bandwidth to respond at any technical depth, but I’d like to make encouraging noises. If you can figure out a way to make GHC do these things without making the compiler terribly complicated

Re: GHCJS now runs Template Haskell on node.js - Any interest in out of process TH for general cross compilation?

2014-07-03 Thread Luite Stegeman
? On Wed, Jul 2, 2014 at 2:20 PM, Carter Schonwald carter.schonw...@gmail.com wrote: wow, this is great work! If theres a clear path to getting the generic tooling into 7.10, i'm all for it :) (and willing to help on concrete mechanical subtasks) On Wed, Jul 2, 2014 at 12:14 PM, Luite

GHCJS now runs Template Haskell on node.js - Any interest in out of process TH for general cross compilation?

2014-07-02 Thread Luite Stegeman
hi all, I've added some code [1] [2] to GHCJS to make it run Template Haskell code on node.js, rather than using the GHC linker. GHCJS has supported TH for a long time now, but so far always relied on native (host) code for it. This is the main reason that GHCJS always builds native and

GHCJS, JavaScript, cross-platform typechecking with the GHC API and primops

2013-01-25 Thread Luite Stegeman
hi all, I've been working on GHCJS [1] for a while and am trying to get it to work on 64 bit GHC. A quick background: GHCJS uses the GHC API to generate STG, which it then translates to JavaScript. It uses slightly patched versions of the integer-gmp, base and ghc-prim libraries and supports

Re: UHC-like JavaScript backend in GHC

2012-11-13 Thread Luite Stegeman
On Mon, Nov 12, 2012 at 9:16 AM, Jurriën Stutterheim j.stutterh...@me.com wrote: Hi all, foreign import js %1.push(%2) push :: JSArray a - a - IO (JSArray a) I'm not sure if it's even necessary to extend GHC itself for this. Even though this exact syntax (with the js calling convention

Re: UHC-like JavaScript backend in GHC

2012-11-13 Thread Luite Stegeman
Does/can cabal-install support GHCJS? I suppose that's a minor advantage of extending GHC itself; you get cabal support almost for free. Yes. There are two GHCJS installation options. One is the standalone option that includes wrappers for cabal and ghc-pkg. You use `ghcjs-cabal` to install

Re: Type families difference between 7.0.4 and 7.2.1

2011-08-16 Thread Luite Stegeman
sorry, I accidentally sent my reply to Brandon to the wrong address, not this list. On Tue, Aug 16, 2011 at 4:56 PM, Dan Doel dan.d...@gmail.com wrote: ... I don't really understand why it would be impossible not to export a data family, given that (instances I understand). And of course, you

Type families difference between 7.0.4 and 7.2.1

2011-08-15 Thread Luite Stegeman
hi, I've been trying to debug a problem with some code that causes name conflicts with GHC 7.2.1, but not with 7.0.4. The problem appears to be that in some cases, GHC 7.2.1 creates a top-level data family, that was not there with 7.0.4. Here's a small example: -- C.hs {-# LANGUAGE TypeFamilies