[Haskell-cafe] Haskell V Java type checking

2011-10-23 Thread Patrick Browne
Hi,I am comparing some aspects of Haskell with Java.Below is a simple Haskell program with a sub-class.It is followed my attempt to code the same concepts in Java.Two questions:1) Are the two examples close enough? (very subjective)2) In this example, what are the advantages of the Haskell type

Re: [Haskell-cafe] Data.Vector.Mutable.mapM

2011-10-23 Thread Roman Leshchinskiy
Joachim Breitner wrote: Hi, I’m consdering to change some performance critical code from Vector to MVector, hopefully avoiding a lot of copying and garbage collecting. But it seems that the Data.Vector.Mutable interface at

[Haskell-cafe] Problem installing svgcairo

2011-10-23 Thread Roly Perera
Hi, I'm having a problem installing svgcairo with Cabal, which I need for something else. I don't know what's going on, but something (maybe a C preprocessor, judging by Google search results) barfs with the complaint: ./Graphics/Rendering/Cairo/SVG.chs:209:28: error: missing binary operator

[Haskell-cafe] SpecConstr message while compiling

2011-10-23 Thread Daniel Díaz Casanueva
Hi, cafe! I wrote a program and had the following message while compiling (with -O2): SpecConstr Function `addOc{v s6RL} [lid]' has four call patterns, but the limit is 3 Use -fspec-constr-count=n to set the bound Use -dppr-debug to see specialisations What it means? Is it

Re: [Haskell-cafe] SpecConstr message while compiling

2011-10-23 Thread Daniel Fischer
On Sunday 23 October 2011, 19:33:55, Daniel Díaz Casanueva wrote: Hi, cafe! I wrote a program and had the following message while compiling (with -O2): SpecConstr Function `addOc{v s6RL} [lid]' has four call patterns, but the limit is 3 Use -fspec-constr-count=n to set the

Re: [Haskell-cafe] Will changing associativity of enumerator's ($=) affect anyone? (also: enumerator mailing list)

2011-10-23 Thread John Millikin
enumerator 0.4.15, which includes this change, is now published. Hackage: http://hackage.haskell.org/package/enumerator-0.4.15 Home page: https://john-millikin.com/software/enumerator/ Important changes since 0.4.14: * Fix an error in UTF-16 decoding, which could cause truncated output if the

[Haskell-cafe] ANN: diagrams 0.4

2011-10-23 Thread Brent Yorgey
I am pleased to announce the release of version 0.4 of diagrams, a full-featured framework and embedded domain-specific language for declarative drawing. The last announcement was of the 0.1 release; there have been quite a few changes and improvements since then, including: - A new website

Re: [Haskell-cafe] ANN: diagrams 0.4

2011-10-23 Thread Ryan Yates
The correct URL for the manual is: http://projects.haskell.org/diagrams/manual/diagrams-manual.html Ryan On Sun, Oct 23, 2011 at 2:47 PM, Brent Yorgey byor...@seas.upenn.edu wrote: I am pleased to announce the release of version 0.4 of diagrams, a full-featured framework and embedded

Re: [Haskell-cafe] SpecConstr message while compiling

2011-10-23 Thread Daniel Díaz Casanueva
Thank you, good response! Anyway, I'm not specially aware about the speed in that section of the program. The really big work is done in other places. Also, addOc runs in lists of 300~400 as maximum (but only in special inputs, average is under 200), so the time difference can't be improved

Re: [Haskell-cafe] is Haskell missing a non-instantiating polymorphic case? (missing link added)

2011-10-23 Thread Adam Megacz
Hrm, it seems that I hit send instead of save draft when shutting down my computer last night. On 2011-10-22 22:48:55 -0700, Adam Megacz said: I've written up a short example of the problems that happen here: Here is the link which was missing from that posting:

[Haskell-cafe] haskell-janitors (was Re: New rss maintainer)

2011-10-23 Thread Conrad Parker
On 22 October 2011 22:52, Bas van Dijk v.dijk@gmail.com wrote: I released a new rss: http://hackage.haskell.org//package/rss-3000.2.0 It no longer requires old-time and is tested with the latest versions of its dependencies. On 21 October 2011 17:34, Vincent Hanquez t...@snarc.org

Re: [Haskell-cafe] is Haskell missing a non-instantiating polymorphic case? (missing link added)

2011-10-23 Thread Brandon Moore
From: Adam Megacz meg...@cs.berkeley.edu Hrm, it seems that I hit send instead of save draft when shutting down my computer last night. On 2011-10-22 22:48:55 -0700, Adam Megacz said: I've written up a short example of the problems that happen here: Here is the link which was missing

Re: [Haskell-cafe] Will changing associativity of enumerator's ($=) affect anyone? (also: enumerator mailing list)

2011-10-23 Thread Julian Blake Kongslie
On Sun, Oct 23, 2011 at 11:12:49AM -0700, John Millikin wrote: enumerator 0.4.15, which includes this change, is now published. Thanks very much for this change! -- -Julian Blake Kongslie jbl...@omgwallhack.org If this is a mailing list, please CC me on replies. vim: set ft=text :

Re: [Haskell-cafe] hello Haskell

2011-10-23 Thread Erik de Castro Lopo
R J wrote: hey Haskell this is nuts http://www.business10i.com hey Haskell this is nuts ://xxx.xxx.xxx Maybe its time to moderate all newcomers to this list, at least until they post one non-spam message to the list. If you need volunteers to do this moderation I'll stick my hand

Re: [Haskell-cafe] hello Haskell

2011-10-23 Thread Tom Murphy
The GUI list could definitely use this type of moderation. Tom / amindfv On Oct 23, 2011 9:54 PM, Erik de Castro Lopo mle...@mega-nerd.com wrote: R J wrote: hey Haskell this is nuts http://www.business10i.com hey Haskell this is nuts ://xxx.xxx.xxx Maybe its time to moderate

Re: [Haskell-cafe] is Haskell missing a non-instantiating polymorphic case? (missing link added)

2011-10-23 Thread Adam Megacz
On 2011-10-23 17:02:47 -0700, Brandon Moore said: It sounds like the entire point of this is syntax representation? Not really.. the entire point of this is parametricity. :) There are a lot of examples involving syntax and binding because ruling out exotic terms is one of the things

Re: [Haskell-cafe] hello Haskell

2011-10-23 Thread aditya siram
I don't think OP realizes that we *avoid* success at all costs. -deech On Sun, Oct 23, 2011 at 9:17 PM, Tom Murphy amin...@gmail.com wrote: The GUI list could definitely use this type of moderation. Tom / amindfv On Oct 23, 2011 9:54 PM, Erik de Castro Lopo mle...@mega-nerd.com wrote: R J

Re: [Haskell-cafe] ANN: diagrams 0.4

2011-10-23 Thread Rustom Mody
Thanks. This is attractive. I remember (vaguely) a 'live page' ie where one could enter (into the browser) changes to the diagrams code and see the results immediately. Is that page there? (Or am I mixing up with something else?) How does diagrams compare with graphviz? If this is an

Re: [Haskell-cafe] haskell-janitors (was Re: New rss maintainer)

2011-10-23 Thread Erik de Castro Lopo
Conrad Parker wrote: I like the janitors idea because it is practical, and I also like the ideal world where every package has an active maintainer. How about we set up the haskell-janitors github group as Vincent suggests, with some basic rules like: Just to make its intent more obvious,

Re: [Haskell-cafe] hello Haskell

2011-10-23 Thread Daniel Fischer
On Monday 24 October 2011, 03:54:09, Erik de Castro Lopo wrote: R J wrote: hey Haskell this is nuts http://www.business10i.com hey Haskell this is nuts ://xxx.xxx.xxx Maybe its time to moderate all newcomers to this list, at least until they post one non-spam message to the

Re: [Haskell-cafe] hello Haskell

2011-10-23 Thread Erik de Castro Lopo
Daniel Fischer wrote: On Monday 24 October 2011, 03:54:09, Erik de Castro Lopo wrote: R J wrote: hey Haskell this is nuts http://www.business10i.com hey Haskell this is nuts ://xxx.xxx.xxx Maybe its time to moderate all newcomers to this list, at least until they post

Re: [Haskell-cafe] hello Haskell

2011-10-23 Thread Conrad Parker
On 24 October 2011 10:57, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Monday 24 October 2011, 03:54:09, Erik de Castro Lopo wrote: R J wrote: hey Haskell this is nuts http://www.business10i.com hey Haskell this is nuts ://xxx.xxx.xxx Maybe its time to moderate all

Re: [Haskell-cafe] hello Haskell

2011-10-23 Thread Daniel Fischer
On Monday 24 October 2011, 05:04:03, Erik de Castro Lopo wrote: That suggests a hijacked account. Looks quite so, cf. Conrad Parker's message. Such accounts could still be put under moderation. Yes, that's probably the best. ___ Haskell-Cafe

Re: [Haskell-cafe] haskell-janitors (was Re: New rss maintainer)

2011-10-23 Thread Daniel Fischer
On Monday 24 October 2011, 04:56:49, Erik de Castro Lopo wrote: Conrad Parker wrote: I like the janitors idea because it is practical, and I also like the ideal world where every package has an active maintainer. How about we set up the haskell-janitors github group as Vincent

Re: [Haskell-cafe] hello Haskell

2011-10-23 Thread Tom Murphy
Blocking/unsubscribing people based on their email provider seems... sort of impolite or unwelcoming. A greylist could work. Given the relatively low volume of spam, my vote is for the original suggestion of first-message-moderated, with the ability to put an address back on moderation if their

Re: [Haskell-cafe] ANN: diagrams 0.4

2011-10-23 Thread Ivan Lazar Miljenovic
On 24 October 2011 13:51, Rustom Mody rustompm...@gmail.com wrote: How does diagrams compare with graphviz?  If this is an inappropriate (type-wrong?) question thats ok :-)  Its just that when I last looked at graphviz I found the documentation somewhat impenetrable -- like much else in