Re: [Haskell-cafe] GHC Error: FATAL:Symbol _XJv_srt already defined.

2008-07-21 Thread Austin Seipp
I can replicate this err with 6.8.3 on my macbook (os 10.5.4.) It also appears to fail with a copy of the GHC HEAD as well: $ uname -a Darwin existential.local 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun 9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386 $ ghc --version The Glorious

Re: [Haskell-cafe] Haskell code contributions

2008-07-21 Thread Austin Seipp
From the looks of the User Accounts page on hackage, Ross Patterson seems to be responsible, you can contact him here: [EMAIL PROTECTED] Austin ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] GHC Error: FATAL:Symbol _XJv_srt already defined.

2008-07-21 Thread Austin Seipp
Status update: after checking out the latest HEAD and building it, the above error does not occur: $ ~/ghc-head/bin/ghc --version The Glorious Glasgow Haskell Compilation System, version 6.9.20080720 $ ~/ghc-head/bin/ghc --make DerivingError.hs no location info: Warning:

Re: [Haskell-cafe] Re: Profiling nested case

2008-07-21 Thread Ryan Ingram
I had similar experiences as you when attempting to write high performance Haskell; the language makes you want to use high-level abstracted functions but the optimizer (while amazing, to be honest) seems to miss a few cases that it seems like it should hit. The problem seems to be that the

[Haskell-cafe] Building NDP with latest GHC

2008-07-21 Thread Austin Seipp
Hi, After my last issue with GHC's HEAD, I tried checking it out again and getting the patches for the libraries and lo and behold, it worked. So now I'm up to date with the latest libraries and the compiler, but it appears that building NDP itself is proving to be troublesome. (This is on GHC

[Haskell-cafe] Trouble with non-exhaustive patterns

2008-07-21 Thread Fernando Rodriguez
Hi, I defiend the following function to get the last element of a list: final [a] = a final (_:t) = final t and it works as expected. Since I didn't want to have a non exhaustive pattern, I added the following case: final [] = [] - I consider that the end of an empty list is the empty

Re: [Haskell-cafe] Trouble with non-exhaustive patterns

2008-07-21 Thread Janis Voigtlaender
Fernando Rodriguez wrote: Hi, I defiend the following function to get the last element of a list: final [a] = a final (_:t) = final t and it works as expected. Since I didn't want to have a non exhaustive pattern, I added the following case: final [] = [] - I consider that the end of an

Re: [Haskell-cafe] Trouble with non-exhaustive patterns

2008-07-21 Thread C.M.Brown
Hi Fernando, I hope you don't mind, but I've moved this over to the Haskell-beginners mailing list, where I think this kind of question will be more appropriate. In Haskell, it helps to think of functions in terms of an input and an output, that is, what is the thing that is going into the

Re: [Haskell-cafe] Trouble with non-exhaustive patterns

2008-07-21 Thread Chaddaï Fouché
2008/7/21 Fernando Rodriguez [EMAIL PROTECTED]: Suddenly, the function stoped working with a rather cryptic (for a newbie at least) error message: *Temp final [4,5] interactive:1:9: No instance for (Num [a]) arising from the literal `5' at interactive:1:9 Possible fix: add an

Re: [Haskell-cafe] Trouble with non-exhaustive patterns

2008-07-21 Thread Austin Seipp
Hi Fernando, final [] = [] - I consider that the end of an empty list is the empty list final [a] = a final (_:t) = final t Suddenly, the function stoped working with a rather cryptic (for a newbie at least) error message: *Temp final [4,5] interactive:1:9: No instance for

Re: [Haskell-cafe] Re: Help using Network.Curl

2008-07-21 Thread Chaddaï Fouché
2008/7/19 Jim Burton [EMAIL PROTECTED]: opts = [CurlEncoding text/xml , CurlHttpHeaders [X-EBAY-API-COMPATIBILITY-LEVEL=++compatLevel , X-EBAY-API-DEV-NAME=++devName , X-EBAY-API-APP-NAME=++appName ,

Re: [Haskell-cafe] Re: Help using Network.Curl

2008-07-21 Thread Jim Burton
At Mon, 21 Jul 2008 13:21:06 +0100, =?ISO-8859-1?Q?Chadda=EF_Fouch=E9?= wrote: 2008/7/19 Jim Burton [EMAIL PROTECTED]: opts = [CurlEncoding text/xml , CurlHttpHeaders [X-EBAY-API-COMPATIBILITY-LEVEL=++compatLevel , X-EBAY-API-DEV-NAME=++devName

[Haskell-cafe] Keeping a set of ForeignPtr's alive

2008-07-21 Thread Felipe Lessa
Hi! -- Background: -- I have some foreign objects that are mapped to ForeignPtr's, say newtype Obj = O (ForeignPtr Obj) and a foreign collection where those objects are added. The adding is something on the lines of addObj, removeObj :: Collection - Obj - IO () id est, the C code of the

[Haskell-cafe] A good sign: languages used at Google Code Jam

2008-07-21 Thread Don Stewart
http://www.go-hero.net/jam/lang Haskell as the highest ranked FP language in the Google Code Jam, with more submissions than Lisp, Scheme, SML and OCaml put together :) # C++ (used by 2875 people) # Java (used by 1747 people) # Python (used by 691 people) # C# (used by 609

[Haskell-cafe] Linux kernel/library question

2008-07-21 Thread Galchin, Vasili
Hello, I am working on POSIX stuff. I have used Linux as my POSIX OS and have read source when I could find it. Does anybody in this group of Linux newsgroup where one can ask Linux-related implementation questions? Regards, Vasili ___

[Haskell-cafe] beginners mailing list should be beginner's choice

2008-07-21 Thread Dan Weston
Just to avoid any misunderstanding... I am certain that C.M. Brown meant to say CC'ed the Haskell-beginners mailing list instead of moved, but I think it's worth emphasizing that the new beginners list was ostensibly created for various discussed reasons, but all to provide a more tailored

[Haskell-cafe] Optimizing 'sequence'

2008-07-21 Thread Gracjan Polak
Hi all, On the other day I noticed that we could optimize 'sequence' more. I needed it for my monadic parser. Below is my small experiment. Sequence from standard library needs 2.3s to finish (and additional stack space), my version uses only 0.65s and default stack. Is my version better or am

Re: [Haskell-cafe] Linux kernel/library question

2008-07-21 Thread frantisek kocun
Hi Vasili, try one of Linux groups at http://www.nabble.com/Linux-f252.html or maybe Linux kernel group http://www.nabble.com/linux-kernel-f49.html . But I don't know if there are people working with Haskell in Linux as well. But if you would like to ask something only about POSIX, I think they

Re: [Haskell-cafe] Optimizing 'sequence'

2008-07-21 Thread Antoine Latter
On Mon, Jul 21, 2008 at 1:54 PM, Gracjan Polak [EMAIL PROTECTED] wrote: Hi all, On the other day I noticed that we could optimize 'sequence' more. I needed it for my monadic parser. Below is my small experiment. Sequence from standard library needs 2.3s to finish (and additional stack

Re: [Haskell-cafe] Linux kernel/library question

2008-07-21 Thread sylvain nahas
Hi Vasili, Please have a look at http://vger.kernel.org/vger-lists.html The main list is linux-kernel. Depending on the level of your questions, you may also check linux-newbiehttp://vger.kernel.org/vger-lists.html#linux-newbie. If it concerns a defined subsystem/architecture, there is often a

Re: [Haskell-cafe] carry state around ....

2008-07-21 Thread John Meacham
On Mon, Jul 21, 2008 at 01:05:48PM +1200, Richard A. O'Keefe wrote: I think it may be time for a little clarity about aoicb's. From the Single Unix Specification: The aio.h header shall define the aiocb structure which shall include AT LEAST the following members: int

[Haskell-cafe] Re: Extending the GSoC model

2008-07-21 Thread Neil Mitchell
Hi Suggested by Andrew Wager on libraries@, moving to haskell-cafe@ since its a really interesting idea and libraries is probably not the best place for it. Not sure if this is the best place to suggest this, but I was wondering about the possibility of extending the model that we

Re: [Haskell-cafe] Optimizing 'sequence'

2008-07-21 Thread Don Stewart
If you can demonstrate the required laziness/strictness properties are identical, looks like a nice idea. gracjanpolak: Hi all, On the other day I noticed that we could optimize 'sequence' more. I needed it for my monadic parser. Below is my small experiment. Sequence from standard

[Haskell-cafe] Trees (Rose Trees?)

2008-07-21 Thread Ryan Bloor
hi I was curious as to whether my implementation of a Rose Tree and a sumTree function was correct. The aumTree adds up the elements of a tree. data Tree a = Leaf a | Node [Tree a] sumTree :: Tree Int - Int sumTree (Node []) = 0 sumTree (Node xs) = sum (map sumTree xs) The problem with

Re: [Haskell-cafe] Trees (Rose Trees?)

2008-07-21 Thread Andrew Wagner
There are a few different kinds of trees, but if you only need to store data on the leaves, that representation will work. As for your sumTree function, you are indeed missing a case...consider sumTree (Leaf 3)! Once you deal with that case, the other two can actually be combined (since sum [] =