behaviour of {-# NOINLINE #-} in where clauses

2006-08-13 Thread Duncan Coutts
This doesn't have the effect I expected: loop xs = case blah of One thing - ... loop The other - ... realloc ... where {-# NOINLINE realloc #-} realloc = do something loop ... My intention here was that the loop would not contain the code for realloc and that

Mac/PPC threaded RTS problems -- potential clue

2006-08-13 Thread David Kirkman
I managed to build ghc-6.5.20060804 on a powerpc mac, and I spent a little time Saturday night trying to work out what might be going on with the threaded RTS. Running the testsuite with make WAY=threaded1 shows many (73) failures. Many of them (the conc??? set) have to do with TVars, in

behaviour of {-# NOINLINE #-} in where clauses

2006-08-13 Thread Duncan Coutts
This doesn't have the effect I expected: loop xs = case blah of One thing - ... loop The other - ... realloc ... where {-# NOINLINE realloc #-} realloc = do something loop ... My intention here was that the loop would not contain the code for realloc and that

[Haskell] We komen langs

2006-08-13 Thread Henk-Jan van Tuyl
Hallo Diny, We komen vanmiddag langs, zoals afgesproken. Voor geval je het vergeten bent, hoop ik, dat je dit op tijd leest. -- Groeten, Henk-Jan -- http://Van.Tuyl.eu/ -- Using Opera's revolutionary e-mail client: https://secure.bmtmicro.com/opera/buy-opera.html?AID=789433

[Haskell] haskell.org account cleanup / administration

2006-08-13 Thread John Peterson
I'm going to try and be more organized about administering haskell.org. I've started a wiki page, http://haskell.org/haskellwiki/Haskell.org, that will allow me to track the accounts I've given out and tell everyone what haskell.org is for and who to contact for various matters. Would everyone

RE: [Haskell] AJAX applications in Haskell

2006-08-13 Thread Pasqualino 'Titto' Assini
Hi, I have added a page to the Haskell Wiki (http://www.haskell.org/haskellwiki/Hajax) to summarise the key features of a possible tool to develop Ajax applications. Please modify/extend as appropriate. Regards, Titto assini

[Haskell] Homework help (was: 2 programs VERY URGENT)

2006-08-13 Thread ajb
G'day all. Quoting Thomas Davie [EMAIL PROTECTED]: Also of note, this channel is in large part made up of university lecturers, researchers, and PhD students. I really wouldn't be surprised if one of them were to notice the assignment they set cropping up here. This and more, covered

Re: [Haskell] Homework help (was: 2 programs VERY URGENT)

2006-08-13 Thread Brett G. Giles
I'd be happy to move it over. I'll do that this week unless an original owner objects in the next couple of days. On Sun, 2006-08-13 at 23:14 -0400, [EMAIL PROTECTED] wrote: G'day all. Quoting Thomas Davie [EMAIL PROTECTED]: Also of note, this channel is in large part made up of

[Haskell-cafe] A lazy question

2006-08-13 Thread Mario Blazevic
I was hoping to use Haskell's laziness to implement some of the stuff from Continuation and Transducer Composition (http://www-static.cc.gatech.edu/~shivers/papers/fcoro.pdf) a bit more elegantly, without manually coding the coroutine logic in continuation-passing style. Unfortunately, I'm

Re: [Haskell-cafe] A lazy question

2006-08-13 Thread Bertram Felgenhauer
Mario Blazevic wrote: newtype Source x = Source (x, Source x) newtype Sink x = Sink (x - Sink x) type SourceTransducer x y = Source x - Source y type SinkTransducer x y = Sink y - Sink x sourceToSinkTransducer :: SourceTransducer x y - SinkTransducer x y I can't find

Re: [Haskell-cafe] A lazy question

2006-08-13 Thread Mario Blazevic
sourceToSinkTransducer :: SourceTransducer x y - SinkTransducer x y I can't find any way to implement the sourceToSinkTransducer function Indeed that cannot be done because it breaks referential transparency. Ok, thanks for clarifying the reason. Food for thought: You need

[Haskell-cafe] One thought: Num to 0 as ? to list?

2006-08-13 Thread Marc Weber
Is there somethinig corresponding to Num concering lists? I mean there is + - /.. defined. + - are not type specific (Int, Double) neither is : [1,2] notation to Elements.. But what about different implementatins of lists? (linked lists? hash lists? array with index? In other words: why not

Re: [Haskell-cafe] One thought: Num to 0 as ? to list?

2006-08-13 Thread Duncan Coutts
On Sun, 2006-08-13 at 20:36 +0200, Marc Weber wrote: Is there somethinig corresponding to Num concering lists? I mean there is + - /.. defined. + - are not type specific (Int, Double) neither is : [1,2] notation to Elements.. But what about different implementatins of lists? (linked

[Haskell-cafe] rand* why not of type State g a

2006-08-13 Thread Marc Weber
the rand* function are examples for a typical state usage, arent' they? Is there any reasoon why they are not defined RandomGen g = State g a rather than RandomGen g = (a,a) - g - (a,g) ? Marc ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Re: Why Exotic Languages Are Not Mainstream

2006-08-13 Thread Shae Matijs Erisson
Bulat Ziganshin [EMAIL PROTECTED] writes: - lack of specialists (and this means lack of teaching, training, books) There's lots of interactive teaching and training on #haskell What exactly do you think is missing? - lack of variety of libraries (application programmers want to have many

[Haskell-cafe] RE: [Haskell] AJAX applications in Haskell

2006-08-13 Thread Pasqualino 'Titto' Assini
Hi, I have added a page to the Haskell Wiki (http://www.haskell.org/haskellwiki/Hajax) to summarise the key features of a possible tool to develop Ajax applications. Please modify/extend as appropriate. Regards, Titto assini