Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  Haskell -> JavaScript -> nodejs (Martin Vlk)
   2. Re:  Haskell -> JavaScript -> nodejs (Martin Vlk)


----------------------------------------------------------------------

Message: 1
Date: Sat, 20 Jun 2015 07:19:00 +0000
From: Martin Vlk <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] Haskell -> JavaScript -> nodejs
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

Hi,
I can successfully compile a basic Hello World into JavaScript with
ghcjs and run it with nodejs.
But what I ultimately need to do is write a nodejs module in Haskell and
compile down to JavaScript with ghcjs. I need to be able to require
other nodejs modules as well.

Could somebody point me in the right direction? E.g. what approach and
libraries to use...

I have tried a simple thing with jsaddle/lens, but when I try to compile
with ghcjs it is not finding the imported modules, even though when
compiling with ghc it does find them (they are installed using cabal).

Many Thanks
Martin


------------------------------

Message: 2
Date: Sat, 20 Jun 2015 09:56:42 +0000
From: Martin Vlk <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Haskell -> JavaScript -> nodejs
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

I made some progress - in order for Haskell modules to work with ghcjs
you need to use cabal with the --ghcjs flag to install them.

Martin

Martin Vlk:
> Hi,
> I can successfully compile a basic Hello World into JavaScript with
> ghcjs and run it with nodejs.
> But what I ultimately need to do is write a nodejs module in Haskell and
> compile down to JavaScript with ghcjs. I need to be able to require
> other nodejs modules as well.
> 
> Could somebody point me in the right direction? E.g. what approach and
> libraries to use...
> 
> I have tried a simple thing with jsaddle/lens, but when I try to compile
> with ghcjs it is not finding the imported modules, even though when
> compiling with ghc it does find them (they are installed using cabal).
> 
> Many Thanks
> Martin
> 


------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 84, Issue 33
*****************************************

Reply via email to