Re: [Haskell-cafe] writing graphs with do-notation

2009-12-13 Thread Neil Davies
Neat Surely there is somewhere in the haskell Twiki that something like this should live? Neil On 12 Dec 2009, at 21:00, Soenke Hahn wrote: Hi! Some time ago, i needed to write down graphs in Haskell. I wanted to be able to write them down without to much noise, to make them easily

[Haskell-cafe] Re: [darcs-users] Iteratees, streams, and mmap

2009-12-13 Thread Heinrich Apfelmus
Jason Dagit wrote: Johann Höchtl wrote: As a beginner to Haskell, I am only 1/3 through RWH, those lines scare me in a sense to question my effort. I simply can not distinguish if this discussion is somewhat pathological in a sense that every access to the outside world imposes dangers and

Re: [Haskell-cafe] What about adding a wiki for each haskell project?

2009-12-13 Thread Ketil Malde
wren ng thornton w...@freegeek.org writes: Using a wiki page for each project enables anybody to add comments.[...] I think this is a great idea. Because of Duncan's concerns about imposing too much burden on authors, and because there are many mature projects which already have wikis etc,

[Haskell-cafe] Re: [darcs-users] Iteratees, streams, and mmap

2009-12-13 Thread Heinrich Apfelmus
Jason Dagit wrote: withPending :: (a - Patch - a) - IO a And withPending would start the streaming and make sure that the stream cannot be visible as a data dependency outside of withPending. [...] Heinrich Apfelmus wrote: In other words, exporting only a foldl' -like interface does

Re: [Haskell-cafe] Are there standard idioms for lazy, pure error handling?

2009-12-13 Thread Bertram Felgenhauer
Duncan Coutts wrote: Another approach that some people have advocated as a general purpose solution is to use: data Exceptional e a = Exceptional { exception :: Maybe e result:: a } However it's pretty clear from the structure of this type that it cannot cope with lazy error

Re: [Haskell-cafe] GHC 6.12 status and features

2009-12-13 Thread Adam Cimarosti
WIth 6.10.4 there's a major bug with Snow leopard: It doesn't work (Cannot compile 64-bit). Is this fixed in the new release? Adam On 12 Dec 2009, at 17:32, Tom Tobin wrote: On Sat, Dec 12, 2009 at 8:22 AM, Max Bolingbroke batterseapo...@hotmail.com wrote: 2009/12/12 Rafael Gustavo da Cunha

Re: [Haskell-cafe] What about adding a wiki for each haskell project?

2009-12-13 Thread Stephen Tetley
Hello everyone, Could a new mailing list for patches and/or commentary do the work of the proposed package Wikis? Similar to the libraries list but separate so it doesn't pollute the libraries list from its important job of discussing and refining the core libs. From my perspective, mails have

Re: [Haskell-cafe] What about adding a wiki for each haskell project?

2009-12-13 Thread wren ng thornton
Ketil Malde wrote: wren ng thornton w...@freegeek.org writes: Using a wiki page for each project enables anybody to add comments.[...] I think this is a great idea. Because of Duncan's concerns about imposing too much burden on authors, and because there are many mature projects which

Re: [Haskell-cafe] What about adding a wiki for each haskell project?

2009-12-13 Thread Marc Weber
Excerpts from wren ng thornton's message of Sun Dec 13 13:54:04 +0100 2009: Ketil Malde wrote: wren ng thornton w...@freegeek.org writes: Using a wiki page for each project enables anybody to add comments.[...] I think this is a great idea. Because of Duncan's concerns about

Re: [Haskell-cafe] What about adding a wiki for each haskell project?

2009-12-13 Thread Ketil Malde
wren ng thornton w...@freegeek.org writes: Ketil Malde wrote: At least the way I see it, it is primarily *not* for use by the author, and in fact most useful when the author is not around to actively support his project. But if it's a wiki, wouldn't people be able to add changes

Re: [Haskell-cafe] What about adding a wiki for each haskell project?

2009-12-13 Thread Stephen Tetley
2009/12/13 Ketil Malde ke...@malde.org: wren ng thornton w...@freegeek.org writes: That's a separate issue isn't it? Why not have an adopt-a-package program where the community determines which packages are orphaned and sets up and maintains wikis and other resources for them until a new

Re: [Haskell-cafe] Re: Parallel foldl doesn't work correctly

2009-12-13 Thread Philip Beadling
On Sat, 2009-12-12 at 13:46 +, Ben Millwood wrote: On Sat, Dec 12, 2009 at 10:08 AM, Maciej Piechotka uzytkown...@gmail.com wrote: If operation is associative it can be done using divide et impera spliting list in half and operating on it pararerlly then split in half etc. Thank you

Re: [Haskell-cafe] GHC 6.12 status and features

2009-12-13 Thread Tom Tobin
On Sun, Dec 13, 2009 at 6:00 AM, Adam Cimarosti cimaro...@gmail.com wrote: WIth 6.10.4 there's a major bug with Snow leopard: It doesn't work (Cannot compile 64-bit). Well, it works as long as you apply a workaround and have universal (combo 32/64-bit) libraries available — albeit it would be

Re: [Haskell-cafe] Re: Allowing hyphens in identifiers

2009-12-13 Thread Richard O'Keefe
I too thought of using NBSP as a word separator. Unicode is replete with spaces of various widths and usages. I suggest, however, that Haskell code does tend to require careful reading, and that ambiguities (like the word boundaries that baStudlyCapsMakesSoHardToLocateQuickly) that we might

Re: [Haskell-cafe] Re: Allowing hyphens in identifiers

2009-12-13 Thread Richard O'Keefe
On Dec 11, 2009, at 11:37 PM, Johannes Laire wrote: On Thu, Dec 10, 2009 at 12:54 AM, Richard O'Keefe o...@cs.otago.ac.nz wrote: Given the amazinglyUglyAndUnreadably baStudlyCaps namingStyle that went into Haskell forNoApparentReasonThatIHaveEverHeardOf Compare: someCoolFunc fstParam

[Haskell-cafe] Haskell Weekly News: Issue 142 - December 13, 2009

2009-12-13 Thread jfredett
--- Haskell Weekly News http://sequence.complete.org/hwn/20091213 Issue 142 - December 13, 2009 --- Welcome to issue 142 of HWN, a newsletter covering

Re: [Haskell-cafe] Haskell Weekly News: Issue 142 - December 13, 2009

2009-12-13 Thread Erlend Hamberg
Hi, First and foremost; thanks for your work on the HWN. It is greatly appreciated. :) Just a quick tip: On Monday 14. December 2009 00.45.29 jfred...@gmail.com wrote: Until next week, Haskeller's, […] why we Haskeller's […] Both of these refer to many “haskellers” – no apostrophe should be

Re: [Haskell-cafe] Haskell Weekly News: Issue 142 - December 13, 2009

2009-12-13 Thread Joe Fredette
English, while my first language (and in fact, only language...) is also my worst language... Thanks for catching the grammar snafu. While I'm here, please note that the issue number is off as well, it's fixed in the version on sequence.complete.org, but not in the email version. /Joe

Re: [Haskell-cafe] Re: Allowing hyphens in identifiers

2009-12-13 Thread Richard O'Keefe
On Dec 13, 2009, at 3:44 AM, Daniel Fischer wrote: Am Freitag 11 Dezember 2009 01:20:55 schrieb Richard O'Keefe: On Dec 11, 2009, at 3:00 AM, Daniel Fischer wrote: Am Mittwoch 09 Dezember 2009 23:54:22 schrieb Richard O'Keefe: Given the amazinglyUglyAndUnreadably baStudlyCaps namingStyle

[Haskell-cafe] Re: Pure extremism (was: Re: Why?)

2009-12-13 Thread Jason Dusek
2009/12/12 Luke Palmer lrpal...@gmail.com: On Fri, Dec 11, 2009 at 7:07 PM, Jason Dusek jason.du...@gmail.com wrote:  Where do we draw the line between machinery and packages?  The types don't tell us what libraries we need. ...you might mean what *haskell* libraries does a piece of code

[Haskell-cafe] getting data through foreign layer without marshalling

2009-12-13 Thread Donn Cave
I'm working with a C++ application library, of the sort where you instantiate a subclass of the library object and it dispatches your functions on receipt of various events. With multiple OS threads, by the way. This works all right so far, with some C++ boilerplate and Haskell FunPtrs created

[Haskell-cafe] Re: How Can Haskell Be Saved?

2009-12-13 Thread Richard O'Keefe
On Dec 14, 2009, at 6:16 AM, John D. Earle wrote: I am already familiar with SUA and it doesn't make Windows POSIX complaint in a way that I would call genuine. I grant you that certain aspects of Windows POSIX support have earned it the DeathStation 9000 label, but it's genuine enough to

Re: [Haskell-cafe] Re: How Can Haskell Be Saved?

2009-12-13 Thread Erik de Castro Lopo
Richard O'Keefe wrote: I also pointed out that Windows NT had a fully compliant POSIX subsystem, by design, and that Microsoft cared at least enough about POSIX support to buy the company that made what is now SUA. How does that explain things like fstat() and stat() returning different

Re: [Haskell-cafe] Re: Parallel foldl doesn't work correctly

2009-12-13 Thread Philip Beadling
-- Prepare to share work to be -- done across available cores chunkOnCpu :: [a] - [[a]] chunkOnCpu xs = chunk (length xs `div` numCapabilities) xs -- Spark a fold of each chunk and -- sum the results. Only works because -- for associative folds. foldChunks :: ([a] - a) - (a - b - a) -

Re: [Haskell-cafe] Re: [darcs-users] Iteratees, streams, and mmap

2009-12-13 Thread Jason Dagit
On Sun, Dec 13, 2009 at 3:47 AM, Heinrich Apfelmus apfel...@quantentunnel.de wrote: How about tracking the requirement of bounded in the type system? In particular, I'm thinking of a type class class NFData a = Small a where the idea is that all types that can be stored in constant

Re: [Haskell-cafe] Re: Allowing hyphens in identifiers

2009-12-13 Thread Daniel Fischer
Am Montag 14 Dezember 2009 01:44:16 schrieb Richard O'Keefe: On Dec 13, 2009, at 3:44 AM, Daniel Fischer wrote: Am Freitag 11 Dezember 2009 01:20:55 schrieb Richard O'Keefe: On Dec 11, 2009, at 3:00 AM, Daniel Fischer wrote: Am Mittwoch 09 Dezember 2009 23:54:22 schrieb Richard O'Keefe:

[Haskell-cafe] platform configure fails to find freeglut

2009-12-13 Thread J. Greg Davidson
I'm trying to install haskell-platform-2009.2.0.2 on OpenSuse 11.2 Gnu/Linux 2.6.27.39-0.2-default #1 SMP x86_64 My currently installed packages include ghc-6.10.4-5.7 freeglut-080721-20.2.1 ghc-GLUT-doc-2.1.2.0-1.13 ghc-GLUT-devel-2.1.2.0-1.13 ghc-GLUT-prof-2.1.2.0-1.13

Re: [Haskell-cafe] platform configure fails to find freeglut

2009-12-13 Thread Don Stewart
jgd: BTW - is there an official bug repository for the Haskell Platoform? I couldn't find that either, and I think it's very important! Yes, of course there's a bug tracker, linked from: http://hackage.haskell.org/platform/ http://trac.haskell.org/haskell-platform/report/1

Re: [Haskell-cafe] writing graphs with do-notation

2009-12-13 Thread Emil Axelsson
Hi! This technique has been used to define netlists in hardware description languages. The original Lava [1] used a monad, but later switched to using observable sharing [2]. Wired [3] uses a monad similar to yours (but more complicated). I think it would be nice to have a single library

Re: [Haskell-cafe] Re: How Can Haskell Be Saved?

2009-12-13 Thread Derek Elkins
What does Haskell need to be saved from? (Its growing popularity and mushrooming library?) Arguably John Earle's emails suggest that the answer to this is Yes. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] getting data through foreign layer without marshalling

2009-12-13 Thread Bernie Pope
2009/12/14 Donn Cave d...@avvanta.com: I'm working with a C++ application library, of the sort where you instantiate a subclass of the library object and it dispatches your functions on receipt of various events.  With multiple OS threads, by the way. This works all right so far, with some