Re: I accidentally the Prelude

2010-03-02 Thread Josef Svenningsson
On Mon, Mar 1, 2010 at 11:54 PM, Jeremy Shaw wrote: > is there, by chance, a file named Prelude.hs in the working directory? (the > directory you are in when you type ghci?) > - jeremy > Ah. Thanks! That was indeed the problem. Though I think ghci:s response could be a little bit more transparent

Re: C that setjmps -> haskell -> C that might longjmp

2010-03-02 Thread Simon Marlow
On 01/03/2010 17:06, Tyson Whitehead wrote: If I have the following call sequence C code -> Haskell code -> various C code bits where the various C code bits on the right might do a longjmp (their version of an exception) and jumping back to the C code on the left. eek. Is it possible to

Re: I accidentally the Prelude

2010-03-02 Thread Simon Marlow
On 02/03/2010 08:59, Josef Svenningsson wrote: On Mon, Mar 1, 2010 at 11:54 PM, Jeremy Shaw wrote: is there, by chance, a file named Prelude.hs in the working directory? (the directory you are in when you type ghci?) - jeremy Ah. Thanks! That was indeed the problem. Though I think ghci:s res

Re: I accidentally the Prelude

2010-03-02 Thread Josef Svenningsson
On Tue, Mar 2, 2010 at 12:21 PM, Simon Marlow wrote: > On 02/03/2010 08:59, Josef Svenningsson wrote: >> >> On Mon, Mar 1, 2010 at 11:54 PM, Jeremy Shaw  wrote: >>> >>> is there, by chance, a file named Prelude.hs in the working directory? >>> (the >>> directory you are in when you type ghci?) >>>

Re: Easily generating efficient instances for classes

2010-03-02 Thread Neil Mitchell
Hi Derive generates declarations - they can be instances, classes, data types, functions, type synonyms etc. Thanks, Neil On Mon, Mar 1, 2010 at 10:32 AM, John Lato wrote: >> From: Christian H?ner zu Siederdissen >> >> Hi, >> >> I am thinking about how to easily generate instances for a class.

Re: Easily generating efficient instances for classes

2010-03-02 Thread Christian Hoener zu Siederdissen
Thanks everybody for the answers. Right now, it looks like this: the indextype is abstracted out and I plan for Data.Ix and my own Data.FastIx (or however to call it). As I don't plan on creating all instances myself, Neils derive package looks good -- once I understand it completely; which I n

Re: I accidentally the Prelude

2010-03-02 Thread Jeremy Shaw
I would still vote for that error in the 'worst ghc error message contest'. I got it just last night with 6.13 when I tried to run the Setup.hs function in base: ~/n-heptane/projects/haskell/darcs/base-3.0.3.2 $ rm Setup.o Setup.hi ~/n-heptane/projects/haskell/darcs/base-3.0.3.2 $ ghc --make -O2 S

Re: I accidentally the Prelude

2010-03-02 Thread Simon Marlow
On 02/03/2010 15:46, Jeremy Shaw wrote: I would still vote for that error in the 'worst ghc error message contest'. I got it just last night with 6.13 when I tried to run the Setup.hs function in base: ~/n-heptane/projects/haskell/darcs/base-3.0.3.2 $ rm Setup.o Setup.hi ~/n-heptane/projects/has

Re: I accidentally the Prelude

2010-03-02 Thread Yitzchak Gale
Jeremy Shaw wrote: >> I would still vote for that error in the 'worst ghc error message >> contest'... Simon Marlow wrote: > Oh, the problem here is that... when we got around > to trying to import it we found that it was not "loaded". > Perhaps the implicit import of Prelude should be... > What y

Re: C that setjmps -> haskell -> C that might longjmp

2010-03-02 Thread Tyson Whitehead
On March 2, 2010 06:17:46 Simon Marlow wrote: > For now I suggest you use setjmp. If you want to suggest an API to tell > the RTS about a longjmp, then perhaps we could implement something, but > I'm not sure what the API would look like, because you don't have a > handle to the in-progress calls.

Re: Easily generating efficient instances for classes

2010-03-02 Thread Neil Mitchell
Hi Christian, No good examples I'm afraid. There are a few notes in README.txt (I just pushed a few more notes). If you follow the process I'd welcome any improvements to the documentation. Thanks, Neil On Tue, Mar 2, 2010 at 1:50 PM, Christian Hoener zu Siederdissen wrote: > Thanks everybody f