RE: Prelude/main magicks?

2004-05-20 Thread Simon Marlow
I could even volunteer to try to add these features to GHC, if the team would accept the help. There are still the issues of update-compatibility for the team to deal with, but I stubbornly believe that they won't be that bad. ;) Of course, if you send us a patch the chances are we'll

Re: Prelude/main magicks?

2004-05-19 Thread Niklas Broberg
I wrote: Taking Lava, a hardware description language, as my example, I would argue that many users of Lava don't really care if it's embedded in Haskell or whereever it comes from, they would just use it. lavac Main.hs where lavac is could simply be a script alias of ghc

RE: Prelude/main magicks?

2004-05-14 Thread Niklas Broberg
I wrote: | Is there some simple way to make GHC treat our own base library in the same | magic way as the Prelude, so that it is always implicitly available? [...] Simon Peyton-Jones wrote: A -fprelude-is flag would certainly be implementable. The questions are a) Would it be desirable? After

RE: Prelude/main magicks?

2004-05-14 Thread Bayley, Alistair
By using an explicit Lava compiler you declare that this is indeed a Lava program, and you don't expect it to work in any other setting, in particular not with a Haskell compiler like GHC. ... And in the same line of thinking, I would want a way of specifying suffixes of input

Re: Prelude/main magicks?

2004-05-14 Thread Malcolm Wallace
Niklas Broberg [EMAIL PROTECTED] writes: Taking Lava, a hardware description language, as my example, I would argue that many users of Lava don't really care if it's embedded in Haskell or whereever it comes from, they would just use it. lavac Main.hs where lavac is could

RE: Prelude/main magicks?

2004-05-10 Thread Simon Peyton-Jones
| Is there some simple way to make GHC treat our own base library in the same | magic way as the Prelude, so that it is always implicitly available? Note | that we don't want to exchange the existing Prelude for our own, we want to | leave that one as it stands, rather we want one or more other

Prelude/main magicks?

2004-05-09 Thread Niklas Broberg
Hello, fellow GHCees, I am currently co-developing a language[1] as an extension to Haskell, by means of a preprocessor to GHC. In this language we want to supply the programmer with a number of functions by default, as with the functions in the GHC Prelude. Is there some simple way to make

Re: Prelude/main magicks?

2004-05-09 Thread Tomasz Zielonka
On Sun, May 09, 2004 at 06:54:27PM +, Niklas Broberg wrote: I am currently co-developing a language[1] as an extension to Haskell, by means of a preprocessor to GHC. In this language we want to supply the programmer with a number of functions by default, as with the functions in the GHC

Re: Prelude/main magicks?

2004-05-09 Thread Tomasz Zielonka
On Sun, May 09, 2004 at 09:45:32PM +0200, Tomasz Zielonka wrote: requirePage :: () requirePage = f page where f :: PageType - () f _ = () Or simpler: _requirePage :: PageType _requirePage = page Best regards, Tom -- .signature: Too many levels of symbolic

Re: Prelude/main magicks?

2004-05-09 Thread Niklas Broberg
I am currently co-developing a language[1] as an extension to Haskell, by means of a preprocessor to GHC. In this language we want to supply the programmer with a number of functions by default, as with the functions in the GHC Prelude. Is there some simple way to make GHC treat our own