Re: [Haskell-cafe] forkProcess, forkIO, and multithreaded runtime

2013-01-21 Thread Alexander Kjeldaas
I think you can test this theory with this patch. If a thread is waiting on the task-cond condition variable which is matched up with task-lock, then pthread_cond_destroy will return EBUSY, which must always be a bug in the RTS. Alexander diff --git a/rts/posix/OSThreads.c

Re: [Haskell-cafe] forkProcess, forkIO, and multithreaded runtime

2013-01-21 Thread Alexander Kjeldaas
Or this. It seems that you must compile with DEBUG for the mutex check. This enables error-checking mutexes on posix. Alexander diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c index ae31966..e07221d 100644 --- a/rts/posix/OSThreads.c +++ b/rts/posix/OSThreads.c @@ -91,7 +91,8 @@

Re: [Haskell-cafe] [ANN] tls-extra 0.6.1 - security update, please upgrade.

2013-01-21 Thread Joachim Breitner
Hi, Am Sonntag, den 20.01.2013, 17:21 +0100 schrieb Vincent Hanquez: On Sun, Jan 20, 2013 at 11:01:22AM +0100, Joachim Breitner wrote: Debian ships tls-extras 0.4.6 in what will become wheezy, and due to the freeze upgrading to a new major upstream release is not acceptable. Would it

Re: [Haskell-cafe] Up-front Unit Testing in Haskell

2013-01-21 Thread Jan Stolarek
Thanks for a nice tutorial. A couple of months ago I spent quite some time trying to figure out how to write tests in Haskell, which resulted in this blog post: http://ics.p.lodz.pl/~stolarek/blog/2012/10/code-testing-in-haskell/ Sadly there are no test-framework providers for hspec and

Re: [Haskell-cafe] forkProcess, forkIO, and multithreaded runtime

2013-01-21 Thread Chris Dornan
I am also sorry to be late on this but I have run into the same problem trying to demonise a programme on 7.4.2. My solution was to get a shell wrapper to run the daemon in debug mode (I.e., sans fork) and get the shell script to do the demonising. Other than this I have found the threaded RTS to

Re: [Haskell-cafe] forkProcess, forkIO, and multithreaded runtime

2013-01-21 Thread Alexander Kjeldaas
While trying to dig around this morning I started adding clang-style thread locking annotations to the source code. These can be very handy and I found at least one place where the documented locking policy doesn't seem to match what is happening. Here is an example with annotations, and what

[Haskell-cafe] ANN: Hquery 0.1

2013-01-21 Thread Tycho Andersen
Hi cafe, I've written a library called hquery, which can be used to manipulate xmlhtml trees (and has a similar selector syntax to jquery, hence the name). This enables easy manipulation and content generation from html templates. If you're familiar with Lift's CssSels, this is basically an

Re: [Haskell-cafe] XCode Dependency for HP on Mac

2013-01-21 Thread Andrew H Bridge
Tom Murphy amindfv at gmail.com writes: Is there a way to install HP without XCode? Could there be in the future? I'm tired of dealing with Apple's constant upgrade requirements, registration requirements, etc., and it seems like a small function that XCode actually performs in the Haskell

Re: [Haskell-cafe] XCode Dependency for HP on Mac

2013-01-21 Thread Mark Lentczner
As the README at that repository states, For 10.7 and later Apple now distributes a Command Line Tools package on the developer site. When I build and release the Haskell Platform, I confirm that works when just this package is installed (rather than all of Xcode). The Command Line Tools from

Re: [Haskell-cafe] XCode Dependency for HP on Mac

2013-01-21 Thread Andrew H Bridge
Mark Lentczner mark.lentczner at gmail.com writes: As the README at that repository states, For 10.7 and later Apple now distributes a Command Line Tools package on the developer site. When I build and release the Haskell Platform, I confirm that works when just this package is installed

Re: [Haskell-cafe] [Haskell] ANNOUNCE: MFlow 0.2

2013-01-21 Thread Alberto G. Corona
The template look is very simple but it uses a lot of dynamic code behind I changed the template to something more light. http://haskell-web.blogspot.com.es/ 2013/1/20 bri...@aracnet.com On Thu, 17 Jan 2013 16:07:41 +0100 Alberto G. Corona agocor...@gmail.com wrote: The entry in my

Re: [Haskell-cafe] regular expression sub-expression matching

2013-01-21 Thread Nicolas Bock
Hi Roman and Bob, thanks a lot for the help. I ended up using getAllTextSubmatches as explained by Bob, since I had that package already installed on my system. Works great! Thanks, nick On Fri, Jan 18, 2013 at 5:52 PM, Bob Ippolito b...@redivi.com wrote: Note that Haskell doesn't convert

Re: [Haskell-cafe] [ANN] tls-extra 0.6.1 - security update, please upgrade.

2013-01-21 Thread Vincent Hanquez
On Sun, Jan 20, 2013 at 08:27:07PM +0100, Alexander Kjeldaas wrote: Regarding testing, it looks like the Tests directory hasn't been updated to cover this bug. What would really give confidence is a set of tests encoding fixed security vulnerabilities in OpenSSL (and similar libraries). That