[Haskell] Re: haskell.org libraries and tools page needs some fixing

2006-03-22 Thread Bulat Ziganshin
Hello Björn, Wednesday, March 22, 2006, 1:35:42 PM, you wrote: BB I recently wanted to add some libraries to BB http://www.haskell.org/haskellwiki/Libraries_and_tools and noticed a BB number of problems. there is also HCAR report. my thoughts is what we should create some central repository

[Haskell] Re: haskell.org libraries and tools page needs some fixing

2006-03-22 Thread Andres Loeh
BB I recently wanted to add some libraries to BB http://www.haskell.org/haskellwiki/Libraries_and_tools and noticed a BB number of problems. there is also HCAR report. my thoughts is what we should create some central repository including libs/apps/papers/communities and so on and replace

Re: [Haskell] Haskell as a markup language

2006-03-22 Thread oleg
shelarcy wrote: SXML can add useful function for macro, like this; (define (M:link keyword url) `(a (@ (href ,url)) ,keyword)) (define (M:link_amazon keyword asin) (M:link keyword `(http://www.amazon.co.jp/exec/obidos/ASIN/; ,asin /someone_id/))) (define (M:book keyword

Re: Threaded runtime error

2006-03-22 Thread Volker Stolz
* Volker Stolz [EMAIL PROTECTED]: [EMAIL PROTECTED] [20:17:08] ./timeout 10 /usr/bin/true FFatal error '_pq_insert_tail: Already in priority queue' at line 200 in file /usr/src/lib/libpthread/thread/thr_priority_queue.c (errno = 0) A workaround seems to use another threading library here.

Re: [GHC] #729: Build system uses wrong version of include files.

2006-03-22 Thread GHC
#729: Build system uses wrong version of include files. ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone:

Re: [GHC] #714: inconsistency between handling of class and signature constraints

2006-03-22 Thread GHC
#714: inconsistency between handling of class and signature constraints --+- Reporter: [EMAIL PROTECTED] | Owner: Type: bug | Status: new Priority: normal

[GHC] #733: Problem compiling .lhs files with lines that begin with #

2006-03-22 Thread GHC
#733: Problem compiling .lhs files with lines that begin with # -+-- Reporter: guest |Owner: Type: bug | Status: new Priority: normal|Milestone:

Re: 6.4.2 release plans

2006-03-22 Thread Simon Marlow
Duncan Coutts wrote: Chris Parrott found that ghc-6.4.1 doesn't work with gcc 4.1 on amd64, although it does work on x86. The error manifests itself as link errors due to undefined symbols: /var/tmp/portage/ghc-6.4.1-r2/work/ghc-6.4.1/ghc/rts/libHSrts.a(Linker.o):(.data+0x48): undefined

Re: Threaded runtime error

2006-03-22 Thread Simon Marlow
Volker Stolz wrote: * Volker Stolz [EMAIL PROTECTED]: [EMAIL PROTECTED] [20:17:08] ./timeout 10 /usr/bin/true FFatal error '_pq_insert_tail: Already in priority queue' at line 200 in file /usr/src/lib/libpthread/thread/thr_priority_queue.c (errno = 0) A workaround seems to use another

Re[2]: ghc releasing memory during compilation

2006-03-22 Thread Bulat Ziganshin
Hello Ketil, Wednesday, March 22, 2006, 11:02:49 AM, you wrote: of course, any complicated algorithm can be a result of long researches and so we are far from such algorithms. my words is more a rhetorical point than concrete suggestion. that's real on this moment: 1) tune the ghc algorithm to

6.4.1 Bug? getServiceEntry: does not exist (no such service entry)

2006-03-22 Thread S. Alexander Jacobson
I just upgraded to 6.4.1 from 6.4.0 and am now getting this error when I run socket code via ghci, but not when I compile the code using ghc. Any idea what this is or how to fix? getServiceEntry: does not exist (no such service entry) FYI, I am running WinXP SP2. -Alex-

Message GHC/PrimopWrappers.hs:133:29: Not in scope: `GHC.Prim.quotInteger2Exp#' building GHC with additional primitive operation

2006-03-22 Thread Thorkil Naur
Hello, Using the marvelous Haskell language and the equally marvelous GHC implementation, I have over the past couple of years revived my old interest in integer factorization. The built-in support for multi-precision integer arithmetic makes Haskell a fine choice for this kind of computation.

Re: 6.4.2 release plans

2006-03-22 Thread Jens Petersen
On Tue, 21 Mar 2006 23:31:34 + Duncan Coutts [EMAIL PROTECTED] wrote: Chris found that the problem is that gcc 4.1 is noticing that StgRunIsImplementedInAssembler is not actually used anywhere. It is in inline assembly in StgRunIsImplementedInAssembler that the global symbols StgRun and

RE: Strict tuples

2006-03-22 Thread John Hughes
From: Simon Marlow [EMAIL PROTECTED] After some thought, I find myself with a similar view to John. Strict tuples are starting to feel like real language bloat, one tiny addition too much. Remember, every addition we make to the core syntax is multiplied by all the

RE: important news: refocusing discussion

2006-03-22 Thread Simon Marlow
On 21 March 2006 23:51, isaac jones wrote: Concurrency is summarized here: http://haskell.galois.com/cgi-bin/haskell-prime/trac.cgi/wiki/Concurrenc y I have updated the concurrency page with a skeleton proposal. Cheers, Simon ___

Re: the MPTC Dilemma (please solve)

2006-03-22 Thread Roman Leshchinskiy
On Mon, 20 Mar 2006, Claus Reinke wrote: variant A: I never understood why parameters of a class declaration are limited to variables. the instance parameters just have to match the class parameters, so let's assume we didn't have that variables-only

Re[2]: Strict tuples

2006-03-22 Thread Bulat Ziganshin
Hello Wolfgang, Wednesday, March 22, 2006, 1:29:24 AM, you wrote: you said WHAT you think but not said WHY? my motivation is to be able to use myriads of already implemented algorithms on new datatypes as i said, shebang patterns allow only to specify that IMPLEMENTATION of some function is

Ticket #15: add a binary IO interface

2006-03-22 Thread Bulat Ziganshin
Hello , about this - i'm almost sure that current widely used libraries (NewBinary) is not as good as my own one (http://freearc.narod.ru/Streams.tar.gz) is not ever used and even still not documented, so it is not easy to make right choice :) -- Best regards, Bulat

Re: MonadPlus Reform

2006-03-22 Thread Cale Gibbard
I'd like to put a me too on that one. This part of the class hierarchy is currently a bit inexpressive. I've been annoyed by the fact that if I want to express in the type signature of a function that a monad has a failure mechanism, I'm forced to go all the way up to MonadPlus, which makes it

Re: Re[2]: Strict tuples

2006-03-22 Thread Taral
On 3/22/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: ghc uses unboxed tuples just for such sort of optimizations. instead of returning possibly-unevaluated pair with possibly-unevaluated elements it just return, say, two doubles in registers - a huge win I have no doubt of this. My comment

Re: the MPTC Dilemma (please solve)

2006-03-22 Thread Claus Reinke
class Graph (g e v) where src :: e - g e v - v tgt :: e - g e v - v we associate edge and node types with a graph type by making them parameters, and extract them by matching. If I understand correctly, this requires

Re: Strict tuples

2006-03-22 Thread Ben Rudiak-Gould
John Meacham wrote: ghc's strictness analyzer is pretty darn good, If something is subtle enough for the compiler not to catch it, then the programmer probably won't right off the bat either. Even the best strictness analyzer can't determine that a function is strict when it really isn't. The

Re: Strict tuples

2006-03-22 Thread Ben Rudiak-Gould
Bulat Ziganshin wrote: Taral wrote: T I don't see that more optimization follows from the availability T of information regarding the strictness of a function result's T subcomponents. ghc uses unboxed tuples just for such sort of optimizations. instead of returning possibly-unevaluated pair

Re: Re[2]: Strict tuples

2006-03-22 Thread Manuel M T Chakravarty
Taral: On 3/22/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: ghc uses unboxed tuples just for such sort of optimizations. instead of returning possibly-unevaluated pair with possibly-unevaluated elements it just return, say, two doubles in registers - a huge win I have no doubt of this.

Re: Re[2]: Strict tuples

2006-03-22 Thread Taral
On 3/22/06, Manuel M T Chakravarty [EMAIL PROTECTED] wrote: It does happen...sometimes! The trouble is that for certain types of programs (eg, numeric intensive ones), you absolutely need that optimisation to happen. Without strict tuples, this means, you have to dump the intermediate code

RE: important news: refocusing discussion

2006-03-22 Thread Manuel M T Chakravarty
Simon Marlow: On 21 March 2006 23:51, isaac jones wrote: Concurrency is summarized here: http://haskell.galois.com/cgi-bin/haskell-prime/trac.cgi/wiki/Concurrenc y I have updated the concurrency page with a skeleton proposal. Yes, good plan. Manuel

[Haskell-cafe] Re: Returning a list element?

2006-03-22 Thread Dominic Steinitz
Donald Bruce Stewart dons at cse.unsw.edu.au writes: mainMenu = sequence_ $ map putStrLn [line1, line2, line3] I argue if you want to sequence_ a map you should write mapM_: mapM_ putStrLn [line1, line2, line3] Nice mapM is under-appreciated? More under-appreciated are line

Re: [Haskell-cafe] Porting GHC to OSX86?

2006-03-22 Thread Thomas Davie
On Mar 21, 2006, at 8:09 PM, Deling Ren wrote: Hi there, Has anyone made any attempt to port GHC to Mac OS X on x86? Wolfgang Thaller’s binary package runs over Rosetta but slow (not surprising). It can not be used to compile a native version either (I got some errors related to machine

[Haskell-cafe] Re: strange ghc program behaviour

2006-03-22 Thread Koen . Roelandt
From ghc-6.4, the runtime system no longer flushes open files; it truncates them instead. You should close (or flush) the file explicitly with 'hClose' or 'hFlush' before the program terminates. I added 'hClose' to processXmlWith in the Wrapper module. That solved the problem. Thank you!

Re: [Haskell-cafe] Porting GHC to OSX86?

2006-03-22 Thread Deling Ren
It's not supported on i386 platform yet :( On Mar 22, 2006, at 12:34 AM, Thomas Davie wrote: On Mar 21, 2006, at 8:09 PM, Deling Ren wrote: Hi there, Has anyone made any attempt to port GHC to Mac OS X on x86? Wolfgang Thaller’s binary package runs over Rosetta but slow (not

[Haskell-cafe] Re: Reading files efficiently

2006-03-22 Thread Simon Marlow
Donald Bruce Stewart wrote: Well, I know this works: $ cat A.lhs #!/usr/bin/env runhaskell main = putStrLn gotcha! $ ./A.lhs gotcha! But for files with no .hs or .lhs extension? Anyone know of a trick? GHC 6.6 will allow this, because we added the -x flag (works just

Re: [Haskell-cafe] Porting GHC to OSX86?

2006-03-22 Thread Gregory Wright
Hi, DP will support the i386 build as soon as Wolfgang makes his changes available. As I understand, from earlier messages on one of the ghc* lists, this is almost done for the pre-6.6 branch, but not yet backported to the 6.4.x branch. Also, DP uses a binary bootstrap compiler to build ghc,

[Haskell-cafe] planet.haskell.org? for Haskell blogs

2006-03-22 Thread Isaac Jones
I think someone should volunteer to set up Planet Haskell ala Planet Debian, Planet Gnome, Planet Perl, etc. These sites are Blog aggregators. Basically they just collect the RSS feeds of the community and post their blogs to a web page in a cute format (the gnome one is especially cute, but you

[Haskell-cafe] Wheres this going wrong

2006-03-22 Thread Neil Rutland
Hi there, Thanks to some advise by one of the other posters i have chosen to try and set up a list that uses lookup to find the values of the elements within it. However what i have attempted so far has resulted in odd answers or errors. Anyway here it is, i have given each element a string at

Re: [Haskell-cafe] Wheres this going wrong

2006-03-22 Thread Sebastian Sylvan
On 3/22/06, Neil Rutland [EMAIL PROTECTED] wrote: Hi there, Thanks to some advise by one of the other posters i have chosen to try and set up a list that uses lookup to find the values of the elements within it. However what i have attempted so far has resulted in odd answers or errors.

Re: [Haskell-cafe] Wheres this going wrong

2006-03-22 Thread Udo Stenzel
Neil Rutland wrote: ttyyppee LLiinnee == [[((((SSttrriinngg,,SSttrriinngg)),,((SSttrriinngg,,IInntt)),,((SSttrriinngg,,IInntt)),,((SSttrriinngg,,BBooooll)),,

[Haskell-cafe] Code Review: Sudoku solver

2006-03-22 Thread David F. Place
Hi All, I really appreciate all the help I received when I asked you to critique my PrefixMap module a few weeks ago. I think I am making good progress in correcting the lisp in my Haskell programming. I'll be very grateful to anyone who can take a glance at the attached short program

Re: [Haskell-cafe] Code Review: Sudoku solver

2006-03-22 Thread Jared Updike
On 3/22/06, David F. Place [EMAIL PROTECTED] wrote: Hi All, I really appreciate all the help I received when I asked you to critique my PrefixMap module a few weeks ago. I think I am making good progress in correcting the lisp in my Haskell programming. I'll be very grateful to anyone who

Re: [Haskell-cafe] Code Review: Sudoku solver

2006-03-22 Thread Robert Dockins
On Mar 22, 2006, at 2:16 PM, David F. Place wrote: Hi All, I really appreciate all the help I received when I asked you to critique my PrefixMap module a few weeks ago. I think I am making good progress in correcting the lisp in my Haskell programming. I'll be very grateful to anyone

[Haskell-cafe] Bit streams programs in Haskell

2006-03-22 Thread Per Gustafsson
Haskell gurus, We have made a proposal to extend the Erlang `binary' data type from being a sequence of bytes (a byte stream) to being a sequence of bits (a bitstream) with the ability to do pattern matching at the bit level. This proposal has now been fully implemented all these at the level

Re: [Haskell-cafe] Code Review: Sudoku solver

2006-03-22 Thread Chris Kuklewicz
Robert Dockins wrote: On Mar 22, 2006, at 2:16 PM, David F. Place wrote: Hi All, I really appreciate all the help I received when I asked you to critique my PrefixMap module a few weeks ago. I think I am making good progress in correcting the lisp in my Haskell programming. The style

Re: [Haskell-cafe] Bit streams programs in Haskell

2006-03-22 Thread David F. Place
One thing I noticed, is that you are measuring IO in the Haskell version of drop3. hGetContents is lazy. On Mar 22, 2006, at 4:43 PM, Per Gustafsson wrote: Also, perhaps our mind might be suffering from severe case of strictness and might be completely unable to `think lazily'. So, we

Re: [Haskell-cafe] Bit streams programs in Haskell

2006-03-22 Thread Chris Kuklewicz
Per Gustafsson wrote: Haskell gurus, I am not a guru, but I'll clean up some of this. Our experience in writing efficient (and beautiful) Haskell programs is close to (if not below) zero. Also, perhaps our mind might be suffering from severe case of strictness and might be completely

Re: [Haskell-cafe] Bit streams programs in Haskell

2006-03-22 Thread Donald Bruce Stewart
per.gustafsson: Haskell gurus, We have made a proposal to extend the Erlang `binary' data type from being a sequence of bytes (a byte stream) to being a sequence of bits (a bitstream) with the ability to do pattern matching at the bit level. Our experience in writing efficient (and