Hi.
Thanks! It seems to work correctly now. However it
does not appear to work when loading via :load on the GHCi prompt. It would be
nice to get this to work as it would (probably) enable me to run haskell-mode
with ghci interaction through emacs under windows.
Thanks, Calle
-
Hallo,
Ghci and Template Haskell show that it is possible to compile and load
a module into a running program. Is there a user interface to do
that? Would one be possible? Would that make a Haskell analog of
Yaws (yaws.hyber.org) possible?
For those who don't know Yaws: It is a web server
That's good to hear -- :load works as
expected for me:
Prelude :load "c:/Program
Files/Haskell/Mod1.hs" "c:/Program Files/Haskell/Mod2.hs"
Compiling Mod1 ()
Compiling Mod2 ()
Ok, modules loaded: Mod1, Mod2.
Prelude
--sigbjorn
- Original Message -
From:
Calle
We are using a web server written in Haskell in a production
environment... It only serves dynamic pages - it is
a bit like Tomcat for Haskell... It uses the ghci linker interface to
load object files... but does not compile automatically.
I think it sould be possible to embed ghc into an
Carsten Schultz writes:
a web server written in Erlang that can compile [...] code embedded
in HTML files to produce dynamic pages
IMHO it should be possible to add a mod_runhugs module to Apache,
which implements exactly that except that it doesn't require any
compilation of code at all. As
A mod_haskell (using hugs) has been done here:
http://losser.st-lab.cs.uu.nl/mod_haskell/
But, think of the advantages of a type-safe web-server, utilising GHC's
light weight threads...
Regards,
Keean Schupke.
-Original Message-
From: [EMAIL PROTECTED]
| Ghci and Template Haskell show that it is possible to
| compile and load a module into a running program. Is
| there a user interface to do that? Would one be
| possible? Would that make a Haskell analog of Yaws
| (yaws.hyber.org) possible?
|
| For those who don't know Yaws: It is a
Keean writes:
http://losser.st-lab.cs.uu.nl/mod_haskell/
Interesting!
But, think of the advantages of a type-safe web-server, utilising GHC's
light weight threads...
Well, yes, but the problem is that web server today must provide tons
of things to be suitable for production use.