[Haskell-cafe] building unix package on windows

2008-09-08 Thread jean-christophe mincke
Hello, I have installed GHC and cygwin on windows XP and I am trying to build the unix package (required to install HApps) ** When I use .../ghc/gcc as c compiler I receive the following error during the configure* D:\temp\haskell\unix-2.3.0.0runhaskell Setup configure --ghc

Re: [Haskell-cafe] building unix package on windows

2008-09-08 Thread Jeremy Apthorp
Those headers simply do not exist under windows. There's a reason it's called 'Unix' :P Perhaps mingw32 or cygwin could help, as those packages make an attempt at emulating (so to speak) the unix environment. On 08/09/2008, at 17:06, jean-christophe mincke [EMAIL PROTECTED] wrote:

Re: [Haskell-cafe] experimental static blog engine in Haskell (file based, markdown syntax)

2008-09-08 Thread jinjing
It's up ( I think, since it's my first cabal ). cabal install panda kibro new ttmyblog cd myblog rm -r db; rm -r public git clone git://github.com/nfjinjing/panda-template.git db sh db/scripts/bootstrap.sh kibro start On Sun, Sep 7, 2008 at 4:26 AM, Don Stewart

[Haskell-cafe] mailing list choices?

2008-09-08 Thread Conal Elliott
I want to set up some kind of mailing list for reactive (which I plan to release soon). The most obvious thing is to set up a mailman-based list on haskell.org, but I wonder -- do people really want to keep using mailman technology? Or something more modern like Yahoo or Google groups. I use my

Re: [Haskell-cafe] mailing list choices?

2008-09-08 Thread Alexey Beshenov
On Monday 08 September 2008 14:33:47 Conal Elliott wrote: I want to set up some kind of mailing list for reactive (which I plan to release soon).  The most obvious thing is to set up a mailman-based list on haskell.org, but I wonder -- do people really want to keep using mailman technology?  

[Haskell-cafe] haskell job offer.

2008-09-08 Thread Lionel Barret De Nazaris
We (Gamr7, see at the bottom) are looking from a senior dev/Technical director. We don't really care about the title but we want someone good (who doesn't ?). We need someone able to model *and* code well (No architect who never codes). The ability to communicate well with a team is also a

RE: [Haskell-cafe] mailing list choices?

2008-09-08 Thread Sittampalam, Ganesh
I would call Yahoo and Google groups a major step backwards from mailman. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Conal Elliott Sent: 08 September 2008 11:34 To: Haskell Café Subject: [Haskell-cafe] mailing list choices? I want to set up

Re: [Haskell-cafe] mailing list choices?

2008-09-08 Thread Conal Elliott
gmane is indeed a nifty complement to mailman, making mailman more appealing to me. I especially like the variety of interfaces. Thanks, Alexey. - Conal On Mon, Sep 8, 2008 at 12:42 PM, Alexey Beshenov [EMAIL PROTECTED] wrote: On Monday 08 September 2008 14:33:47 Conal Elliott wrote: I want

RE: [Haskell-cafe] mailing list choices?

2008-09-08 Thread Sittampalam, Ganesh
The Yahoo mailing list server is notoriously unreliable and randomly drops mails and/or drops people from lists because their email server was temporarily refusing mails (4xx SMTP responses not 5xx). I also find the Yahoo groups web interface absolutely awful; mailman's list archives aren't great,

Re: [Haskell-cafe] mailing list choices?

2008-09-08 Thread Sean Leather
The Yahoo mailing list server is notoriously unreliable and randomly drops mails and/or drops people from lists because their email server was temporarily refusing mails (4xx SMTP responses not 5xx). I also find the Yahoo groups web interface absolutely awful; mailman's list archives aren't

Re: [Haskell-cafe] mailing list choices?

2008-09-08 Thread Conal Elliott
In what ways? 2008/9/8 Sittampalam, Ganesh [EMAIL PROTECTED] I would call Yahoo and Google groups a major step backwards from mailman. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: A problem with nested regions and higher-order?functions

2008-09-08 Thread Chung-chieh Shan
Mario Bla??evi?? [EMAIL PROTECTED] wrote in article [EMAIL PROTECTED] in gmane.comp.lang.haskell.cafe: I'm trying to apply the nested regions (as in Lightweight Monadic Regions by Oleg Kiselyov and Chung-chieh Shan) design pattern, if that's the proper term, in hope to gain a bit more type

Re: [Haskell-cafe] HXT from schema to data model

2008-09-08 Thread Uwe Schmidt
Hello Pierre-Edouard, Is there a way to generate a data model and a set of picklers from an XML (or RelaxNG) Schema using the HXT tool box? the generation of a DTD out of the picklers is in an experimental stage. The generation of a RelaxNG Schema is technically possible, but it's an open

[Haskell-cafe] monadic map on a Data.IntMap

2008-09-08 Thread minh thu
Hi, Is there something like a fmapM_ ? In particular, I'd like to mapM_ a Data.IntMap instead of a List Thank you, Thu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] monadic map on a Data.IntMap

2008-09-08 Thread Jefferson Heard
I suppose a mapM_ monadicFunction . Data.IntMap.toList $ m doesn't work for you? On Mon, Sep 8, 2008 at 2:11 PM, minh thu [EMAIL PROTECTED] wrote: Hi, Is there something like a fmapM_ ? In particular, I'd like to mapM_ a Data.IntMap instead of a List Thank you, Thu

Re: [Haskell-cafe] monadic map on a Data.IntMap

2008-09-08 Thread Chaddaï Fouché
2008/9/8 minh thu [EMAIL PROTECTED]: Hi, Is there something like a fmapM_ ? In particular, I'd like to mapM_ a Data.IntMap instead of a List The Traversable class (from Data.Traversable) includes a mapM function. Unfortunately Data.IntMap don't provide an instance for IntMap (though Data.Map

[Haskell-cafe] Can you do everything without shared-memory concurrency?

2008-09-08 Thread Bruce Eckel
As some of you on this list may know, I have struggled to understand concurrency, on and off for many years, but primarily in the C++ and Java domains. As time has passed and experience has stacked up, I have become more convinced that while the world runs in parallel, we think sequentially and so

Re: [Haskell-cafe] Can you do everything without shared-memory concurrency?

2008-09-08 Thread Arnar Birgisson
Hi Bruce, On Mon, Sep 8, 2008 at 21:33, Bruce Eckel [EMAIL PROTECTED] wrote: I know that both Haskell and Erlang only allow separated memory spaces with message passing between processes, and they seem to be able to solve a large range of problems -- but are there problems that they cannot

Re: [Haskell-cafe] monadic map on a Data.IntMap

2008-09-08 Thread minh thu
2008/9/8 Jefferson Heard [EMAIL PROTECTED]: I suppose a mapM_ monadicFunction . Data.IntMap.toList $ m doesn't work for you? Well, that's what I use (IntMap.elems in fact), but isn't there some perfromance lost ? Thu On Mon, Sep 8, 2008 at 2:11 PM, minh thu [EMAIL PROTECTED] wrote: Hi,

Re: [Haskell-cafe] Can you do everything without shared-memory concurrency?

2008-09-08 Thread Kyle Consalus
Depending on definitions and how much we want to be concerned with distributed systems, I believe either model can be used to emulate the other (though it is harder to emulate the possible pitfalls of shared memory with CSP). To me, it seems somewhat similar to garbage collection vs manually

[Haskell-cafe] STM and FFI

2008-09-08 Thread Mauricio
Hi, Is it possible to use foreign function interface with STMs? If so, where can I find examples? Thanks, Maurício ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] monadic map on a Data.IntMap

2008-09-08 Thread Ross Paterson
On Mon, Sep 08, 2008 at 08:56:26PM +0200, Chaddaï Fouché wrote: Unfortunately Data.IntMap don't provide an instance for IntMap (though Data.Map does for Map). It was an oversight. The instance is straightforward: instance Traversable IntMap where traverse _ Nil = pure Nil traverse f

[Haskell-cafe] Re: building unix package on windows

2008-09-08 Thread David Hotham
But the unix package isn't actually required to build HAppS on Windows. If you remove the dependency from the .cabal file (and also remove the -DUNIX build option) then you'll be fine. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Hackage policy question

2008-09-08 Thread Iavor Diatchki
Hi, I just noticed that hackage has introduced a new policy to disallow changes to a package without bumping the version. I understand that this is probably a good idea for changes to the source code, but it really would be nice to have a backdoor that allows for other changes. For example, I

[Haskell-cafe] [Fwd: profiling in haskell]

2008-09-08 Thread Vlad Skvortsov
Posting to cafe since I got just one reply on [EMAIL PROTECTED] I was suggested to include more SCC annotations, but that didn't help. The 'serialize' function is still reported to consume about 32% of running time, 29% inherited. However, functions called from it only account for about 3% of

[Haskell-cafe] haskell core definition

2008-09-08 Thread Vlad Skvortsov
Hi, I'm trying to profile my haskell code (see thread profiling in haskell) and to get more insight I made GHC produce the haskell Core code. However, I'm not quite sure how to interpret it, is there a definition (quick search didn't reveal one)? Also, how do I demangle the names? It seems

[Haskell-cafe] Re: haskell core definition

2008-09-08 Thread Ashley Yakeley
Vlad Skvortsov wrote: Also, how do I demangle the names? It seems that, for example, 'base:GHC.Base.ZC' is a (:) function on strings, but where how am I supposed to figure that out? #!/usr/bin/perl # Written by Ashley Yakeley 2003 # All rights to the public while () { s/_/ /g;

Re: [Haskell-cafe] Can you do everything without shared-memory concurrency?

2008-09-08 Thread Timothy Goddard
On Tue, 09 Sep 2008 07:33:24 Bruce Eckel wrote: I know that both Haskell and Erlang only allow separated memory spaces with message passing between processes, and they seem to be able to solve a large range of problems -- but are there problems that they cannot solve? I recently listened to an

Re: [Haskell-cafe] Can you do everything without shared-memory concurrency?

2008-09-08 Thread Brandon S. Allbery KF8NH
On 2008 Sep 8, at 21:00, Timothy Goddard wrote: I am not a mathematician, I can't prove it, but I can't think of circumstances where I would need to put mutable references in a data structure except where the language and compiler can't handle immutable structures efficiently. The status

[Haskell-cafe] Field names

2008-09-08 Thread Daryoush Mehrtash
In type section of the Gentle Introduction to Haskell http://www.cs.sfu.ca/CC/SW/Haskell/hugs/tutorial-1.4-html/moretypes.htmlthere is this example: data Point = Pt {pointx, pointy :: Float} abs (Pt {pointx = x, pointy = y}) = sqrt (x*x + y+y) Why is it pointx=x and not x=pointx? --

[Haskell-cafe] Re: Field names

2008-09-08 Thread Mauricio
abs (Pt {pointx = x, pointy = y}) = sqrt (x*x + y+y) Why is it pointx=x and not x=pointx? Your intuition is probably telling you that this is something like: abs (point) = sqrt (x*x+y*y) where {x=pointx point ; y=pointy point} Actually, it's an example of pattern matching: abs

Re: [Haskell-cafe] Can you do everything without shared-memory concurrency?

2008-09-08 Thread Richard A. O'Keefe
I think the demonstration is in Hoare's book on co-operating sequential processes, but if you have pure processes and message passing, you can simulate conventional variables. Here's an Erlang version: variable_loop(State) - receive {ask,Sender} - Sender!{self(),State},

Re: [Haskell-cafe] Can you do everything without shared-memory concurrency?

2008-09-08 Thread Richard A. O'Keefe
On 9 Sep 2008, at 8:15 am, Kyle Consalus wrote: Anyway, for the time being I believe there are operations that can be done with shared memory that can't be done with message passing if we make good performance a requirement. One of our people here has been working on Distributed Shared

Re: [Haskell-cafe] STM and FFI

2008-09-08 Thread Don Stewart
briqueabraque: Hi, Is it possible to use foreign function interface with STMs? If so, where can I find examples? Defintely possible. FFI functions are imported as normal functions, so use them wherever the types fit. ___ Haskell-Cafe mailing

Re: [Haskell-cafe] haskell job offer.

2008-09-08 Thread Don Stewart
Welcome to the community! I've added details about Gamr7 to the industry page, http://haskell.org/haskellwiki/Haskell_in_industry -- Don lionel: We (Gamr7, see at the bottom) are looking from a senior dev/Technical director. We don't really care about the title but we want someone

Re: [Haskell-cafe] haskell job offer.

2008-09-08 Thread Don Stewart
And for those who didn't see the original release announcement, check out their website.. http://gamr7.com/ That's kind of awesome. Could you say more about what you're using Haskell for, Lionel? -- Don dons: Welcome to the community! I've added details about Gamr7 to the industry

Re: [Haskell-cafe] Re: Field names

2008-09-08 Thread Daryoush Mehrtash
Thanks. Pattern matching and memory management in Haskell (or may be GHC implementation of it) is somewhat of a mystery to me. Are there any references that explains the underlying implementation? Daryoush On Mon, Sep 8, 2008 at 6:37 PM, Mauricio [EMAIL PROTECTED] wrote: abs (Pt {pointx