Re: GHC-6.0: Open with ... bug (again!)

2003-06-11 Thread Calle Lejdfors
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 -

Dynamic Compilation

2003-06-11 Thread Carsten Schultz
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

Re: GHC-6.0: Open with ... bug (again!)

2003-06-11 Thread Sigbjorn Finne
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

Re: Dynamic Compilation

2003-06-11 Thread Keean Schupke
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

Re: Dynamic Compilation

2003-06-11 Thread Peter Simons
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

RE: Dynamic Compilation

2003-06-11 Thread Keean
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]

Re: Dynamic Compilation

2003-06-11 Thread Koen Claessen
| 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

Re: Dynamic Compilation

2003-06-11 Thread Peter Simons
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.