[Haskell-cafe] Inferring rewrite rules for higher order functions

2013-01-20 Thread Joachim Breitner
Dear list, with rewrite rules I can tell the compiler to replace map id by id, but I still have to write that rule by hand. Does anyone of you know about research into inferring such a rewrite rule automatically? I could imagine that for a function of type f :: some - args - T a - T b and

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

2013-01-20 Thread Joachim Breitner
Hi, Am Sonntag, den 20.01.2013, 06:50 +0100 schrieb Vincent Hanquez: this is a security advisory for tls-extra 0.6.1 which are all vulnerable to bad certificate validation. Some part of the certificate validation procedure were missing (relying on the work-in-progress x509 v3

Re: [Haskell-cafe] Inferring rewrite rules for higher order functions

2013-01-20 Thread Jan Stolarek
The only paper that comes to my mind is Wadler's Theorems for free. It's an old one and not exactly about rewrite rules, but it may be a good starting point. Janek ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Summer school on Applied Functional Programming at Utrecht University; deadline for registration May 15

2013-01-20 Thread Doaitse Swierstra
Again we will teach an Applied Functional Programming Summer in Haskell school this year at Utrecht University. In the previous four occasions students were all very happy with the school and we plan to repeat this success this year. Among the intended audience are prospective master students

Re: [Haskell-cafe] Why should we write a `par` b `pseq` (f a b) instead of a `par` b `par` (f a b)?

2013-01-20 Thread Johannes Waldmann
Petr P petr.mvd at gmail.com writes: Is there any reason to use   a `par` b `pseq` (a + b) instead of   a `par` b `par` (a + b) (better ask this on parallel-haskell?) It seems to me that the second variant would work as well: The main thread would block on one of the sparked

Re: [Haskell-cafe] Inferring rewrite rules for higher order functions

2013-01-20 Thread Ramana Kumar
Work on deforestation might also be relevant. On Sun, Jan 20, 2013 at 9:57 AM, Joachim Breitner m...@joachim-breitner.dewrote: Dear list, with rewrite rules I can tell the compiler to replace map id by id, but I still have to write that rule by hand. Does anyone of you know about research

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

2013-01-20 Thread 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 be possible for you to create a 0.4.6.1 with this bugfix included? (wow,

[Haskell-cafe] [ANNOUNCE] JuicyPixels 3.0

2013-01-20 Thread Vincent Berthoux
Hello haskellers, I'm presenting the third version of JuicyPixels. As the version number indicate, this is a major version with backward compatibility break. The major reason behind this breakage is the introduction of High Dynamic Range images. High Dynamic Range images are used in photography,

[Haskell-cafe] Container libraries

2013-01-20 Thread Alexander Solla
Hi everybody, What is the state of container libraries? I am looking for a library which provides: * unordered containers (for operational type safety, I don't want to impose orders on things that don't have them -- unordered containers does this) * can handled nested containers (containers

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

2013-01-20 Thread Alexander Kjeldaas
On Sun, Jan 20, 2013 at 6:50 AM, Vincent Hanquez t...@snarc.org wrote: Hi cafe, this is a security advisory for tls-extra 0.6.1 which are all vulnerable to bad certificate validation. Some part of the certificate validation procedure were missing (relying on the work-in-progress x509 v3

Re: [Haskell-cafe] Container libraries

2013-01-20 Thread Ertugrul Söylemez
Alexander Solla alex.so...@gmail.com wrote: What is the state of container libraries? I am looking for a library which provides: * unordered containers (for operational type safety, I don't want to impose orders on things that don't have them -- unordered containers does this) You are

Re: [Haskell-cafe] Container libraries

2013-01-20 Thread Alexander Solla
On Sun, Jan 20, 2013 at 11:39 AM, Ertugrul Söylemez e...@ertes.de wrote: What is the state of container libraries? I am looking for a library which provides: * unordered containers (for operational type safety, I don't want to impose orders on things that don't have them -- unordered

[Haskell-cafe] Function decoration pattern on wiki

2013-01-20 Thread Derek Elkins
I created the following page on the wiki to capture one pattern that occurs often in Edward Kmett's lens library. http://www.haskell.org/haskellwiki/Function_decoration_pattern Feel free to rename it or add comments, examples, clarifications, additional notes or extensions to the technique.

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

2013-01-20 Thread Mark Lentczner
Sorry to be reviving this thread so long after but I seem to be running into similar issues as Michael S. did at the start. In short, I'm using forkProcess with the threaded RTS, and see occasional hangs: - I see these only on Linux. On Mac OS X, I never do. - I'm using GHC 7.4.2 -

Re: [Haskell-cafe] [Haskell] Silent error

2013-01-20 Thread Henning Thielemann
On Mon, 21 Jan 2013, mip...@meta.ua wrote: The program looks like this: --*** factorial :: Int-Int factorial n = product [1..n] main = do print $ factorial 50 --*** And that yields 0 (no errors). Is it a bug or feature? :) This question is

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

2013-01-20 Thread 山本和彦
Hello cafe, Just FYI: I wrote an tutorial, Up-front Unit Testing in Haskell. It is about how to use doctest, hspec and Cabal. Enjoy! --Kazu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

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

2013-01-20 Thread Felipe Almeida Lessa
Where can we find it, Kazu? =) -- Felipe. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

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

2013-01-20 Thread 山本和彦
#Resending due to the lack of URL. Hello cafe, Just FYI: I wrote an tutorial, Up-front Unit Testing in Haskell. It is about how to use doctest, hspec and Cabal. https://github.com/kazu-yamamoto/unit-test-example/blob/master/markdown/en/tutorial.md Enjoy! --Kazu

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

2013-01-20 Thread 山本和彦
Where can we find it, Kazu? =) Oops. Thank you for pointing out. Here it is: https://github.com/kazu-yamamoto/unit-test-example/blob/master/markdown/en/tutorial.md --Kazu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

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

2013-01-20 Thread Mateusz Kowalczyk
Quite informative, thank you. It was nice to see how to combine the suites together as most places only show how to use one. The mention about Travis CI is also much appreciated; it seems like a really good project and I will definitely be using it in the future. Mateusz Kowalczyk On

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

2013-01-20 Thread Alexander Kjeldaas
I just looked at this code and since I don't know the code I can't give you good solutions, but for others watching this thread the links might prove interesting. My main theory is that you do have some other thread in FFI-land while you are fork()ing. The task-cond, task-lock seems to be

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

2013-01-20 Thread Alexander Kjeldaas
On Mon, Jan 21, 2013 at 12:15 AM, Mark Lentczner mark.lentcz...@gmail.comwrote: Sorry to be reviving this thread so long after but I seem to be running into similar issues as Michael S. did at the start. In short, I'm using forkProcess with the threaded RTS, and see occasional hangs: