[Haskell-cafe] Documentation bug -- building ghc from darcs sources

2009-06-12 Thread Michael Vanier
I've been trying to build ghc head from the darcs repo using these instructions: http://hackage.haskell.org/trac/ghc/wiki/Building/GettingTheSources Unfortunately, when I do ./darcs-all --extra get as described under Getting more packages it fails because the darcs-all script doesn't

[Haskell-cafe] ghci and applicative

2009-06-12 Thread Paul Keir
Hi, I'm finding that some data types which use Applicative to instantiate the Num class, give responses I wasn't expecting at the ghci prompt. A simple example is list: import Control.Applicative instance (Num a) = Num [a] where as + bs = (+) $ as * bs (*) = undefined;abs = undefined

Re: [Haskell-cafe] ghci and applicative

2009-06-12 Thread Ryan Ingram
:set -XNoMonomorphismRestriction or eta-expand: let op x y = x+y The problem is that op looks like a value to the user, but it's a function (based on the dictionary passed in), which means that any evaluation it does isn't shared between instances. Consider: f1 = let v = fib 1 in \x - x +

[Haskell-cafe] exporting Data.ByteString functions via FFI

2009-06-12 Thread kenny lu
Hi, I was trying to write a FFI wrapper for my Haskell program which manipulates ByteString. But I am unable to compile/link it. Here is the toy program. {-# LANGUAGE ForeignFunctionInterface #-} module B where import Foreign.C.Types import Foreign.C.String import qualified Data.ByteString

Re: [Haskell-cafe] exporting Data.ByteString functions via FFI

2009-06-12 Thread Jochem Berndsen
kenny lu wrote: Hi, I was trying to write a FFI wrapper for my Haskell program which manipulates ByteString. But I am unable to compile/link it. Here is the toy program. {-# LANGUAGE ForeignFunctionInterface #-} module B where import Foreign.C.Types import Foreign.C.String

Re: [Haskell-cafe] exporting Data.ByteString functions via FFI

2009-06-12 Thread kenny lu
It works indeed. Thanks. -Kenny On Fri, Jun 12, 2009 at 3:50 PM, Jochem Berndsen joc...@functor.nl wrote: kenny lu wrote: Hi, I was trying to write a FFI wrapper for my Haskell program which manipulates ByteString. But I am unable to compile/link it. Here is the toy program.

Re: [Haskell-cafe] Logo fun

2009-06-12 Thread Loup Vaillant
2009/6/11 Thomas Davie tom.da...@gmail.com: Here's the logo, continuing on the batteries included theme: http://www.cs.kent.ac.uk/people/rpg/tatd2/HaskellBatteries.png I'd sugest a thinner and smaller lambda, or bigger (maybe longer) batteries. The + tip of the batteries should also be colored

[Haskell-cafe] Re: Documentation bug -- building ghc from darcs sources

2009-06-12 Thread Simon Marlow
On 12/06/2009 08:00, Michael Vanier wrote: I've been trying to build ghc head from the darcs repo using these instructions: http://hackage.haskell.org/trac/ghc/wiki/Building/GettingTheSources Unfortunately, when I do ./darcs-all --extra get as described under Getting more packages it fails

Re: [Haskell-cafe] Logo fun

2009-06-12 Thread Thomas Davie
On 12 Jun 2009, at 10:27, Loup Vaillant wrote: 2009/6/11 Thomas Davie tom.da...@gmail.com: Here's the logo, continuing on the batteries included theme: http://www.cs.kent.ac.uk/people/rpg/tatd2/HaskellBatteries.png I'd sugest a thinner and smaller lambda, or bigger (maybe longer) batteries.

Re: [Haskell-cafe] Logo fun

2009-06-12 Thread Tom Lokhorst
There's a SVG version of the logo on the wiki: http://haskell.org/haskellwiki/Thompson-Wheeler_logo On Fri, Jun 12, 2009 at 10:39 AM, Thomas Davietom.da...@gmail.com wrote: On 12 Jun 2009, at 10:27, Loup Vaillant wrote: 2009/6/11 Thomas Davie tom.da...@gmail.com: Here's the logo, continuing

Re: [Haskell-cafe] Logo fun

2009-06-12 Thread Deniz Dogan
2009/6/12 Tom Lokhorst t...@lokhorst.eu: There's a SVG version of the logo on the wiki: http://haskell.org/haskellwiki/Thompson-Wheeler_logo I think the biggest problem making the batteries not look like batteries is that they don't look round. For that we need some careful gradenting of them,

Re: [Haskell-cafe] Logo fun

2009-06-12 Thread Deniz Dogan
2009/6/12 Deniz Dogan deniz.a.m.do...@gmail.com: 2009/6/12 Tom Lokhorst t...@lokhorst.eu: There's a SVG version of the logo on the wiki: http://haskell.org/haskellwiki/Thompson-Wheeler_logo I think the biggest problem making the batteries not look like batteries is that they don't look

Re: [Haskell-cafe] Logo fun

2009-06-12 Thread Deniz Dogan
2009/6/12 Deniz Dogan deniz.a.m.do...@gmail.com: 2009/6/12 Deniz Dogan deniz.a.m.do...@gmail.com: 2009/6/12 Tom Lokhorst t...@lokhorst.eu: There's a SVG version of the logo on the wiki: http://haskell.org/haskellwiki/Thompson-Wheeler_logo I think the biggest problem making the batteries not

Re: [Haskell-cafe] Logo fun

2009-06-12 Thread Thomas Davie
On 12 Jun 2009, at 11:15, Deniz Dogan wrote: 2009/6/12 Deniz Dogan deniz.a.m.do...@gmail.com: 2009/6/12 Tom Lokhorst t...@lokhorst.eu: There's a SVG version of the logo on the wiki: http://haskell.org/haskellwiki/Thompson-Wheeler_logo I think the biggest problem making the batteries not

Re: [Haskell-cafe] Logo fun

2009-06-12 Thread Deniz Dogan
2009/6/12 Thomas Davie tom.da...@gmail.com: On 12 Jun 2009, at 11:15, Deniz Dogan wrote: 2009/6/12 Deniz Dogan deniz.a.m.do...@gmail.com: 2009/6/12 Tom Lokhorst t...@lokhorst.eu: There's a SVG version of the logo on the wiki: http://haskell.org/haskellwiki/Thompson-Wheeler_logo I think

Re: [Haskell-cafe] Logo fun

2009-06-12 Thread Thomas ten Cate
On Fri, Jun 12, 2009 at 11:25, Thomas Davietom.da...@gmail.com wrote: With various people's ideas taken into account, I've created a new version of my attempt: http://www.cs.kent.ac.uk/people/rpg/tatd2/logo-1.png http://www.cs.kent.ac.uk/people/rpg/tatd2/logo-1.svg I think the yellow/black

[Haskell-cafe] [ANN] Data.Reify.CSE

2009-06-12 Thread Sebastiaan Visser
Hi all, This module[1] implements common sub-expression elimination for graphs generated by the Data.Reify package. (Which is a really neat tool!) The algorithm performs a simple fixed point iteration and is not (consciously) optimized for speed. This package might especially be useful

Re: [Haskell-cafe] Software Transactional Memory and LWN

2009-06-12 Thread Marcin Kosiba
On Thursday 11 June 2009, Ketil Malde wrote: Hi, Browsing LWN, I ran across this comment: http://lwn.net/Articles/336039/ The author makes a bunch of unsubstantiated claims about STM, namely that all implementations use locking under the hood, and that STM can live- and deadlock. I've

RE: [Haskell-cafe] ghci and applicative

2009-06-12 Thread Paul Keir
Thanks Ryan, I'm slowly becoming aware of the effects of Monomorphism. I'll look again at Neil Mitchell's blog post. I guess it's the same thing when I try: let a = 1 a + 1.0 I'm taking the mono as a clue that the type inferencing will complete after each ghci carriage return; once only. In

RE: [Haskell-cafe] ghci and applicative

2009-06-12 Thread Duncan Coutts
On Fri, 2009-06-12 at 15:00 +0100, Paul Keir wrote: Thanks Ryan, I'm slowly becoming aware of the effects of Monomorphism. I'll look again at Neil Mitchell's blog post. I guess it's the same thing when I try: let a = 1 a + 1.0 I'm taking the mono as a clue that the type inferencing

[Haskell-cafe] graphical user interface library for editing graphs?

2009-06-12 Thread Claude Heiland-Allen
Greetings, I have an idea for a project. The eventual aim is rather eccentric, but the specifications I have sketched out are roughly as follows (best viewed with fixed-width font due to diagrams): 0. the graphical user interface is entirely mouse driven, mouse position/clicks/releases

[Haskell-cafe] Re: Why do ghc-built binaries use timer_create?

2009-06-12 Thread Simon Marlow
On 08/06/2009 22:10, Maurí­cio wrote: This comes from an issue in haskell-beginner, (...) For better or worse, this is something that people should not be trying in the first place, (...) Sure! That's what I sugested in the original question. I'm actually just curious on why timer_create is

[Haskell-cafe] Re: Debugging misbehaving multi-threaded programs

2009-06-12 Thread Simon Marlow
On 11/06/2009 05:40, Evan Klitzke wrote: I've written a multi-threaded Haskell program that I'm trying to debug. Basically what's happening is the program runs for a while, and then at some point one of the threads goes crazy and spins the CPU while allocating memory; this proceeds until the

[Haskell-cafe] Wiki user accounts

2009-06-12 Thread Philippa Cowderoy
I'm hearing reports of people having difficulty obtaining accounts on the Haskell wiki, without which it is impossible to make edits. Currently, account creation is disabled as an anti-spam measure, and the idea is for people to mail the admin and request an account. If this is to work, accounts

Re: [Haskell-cafe] Wiki user accounts

2009-06-12 Thread Gwern Branwen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Fri, Jun 12, 2009 at 11:58 AM, Philippa Cowderoy wrote: I'm hearing reports of people having difficulty obtaining accounts on the Haskell wiki, without which it is impossible to make edits. Currently, account creation is disabled as an

Re: [Haskell-cafe] Wiki user accounts

2009-06-12 Thread Thomas ten Cate
This runs on MediaWiki, right? How about adding a CAPTCHA for account registrations? http://www.mediawiki.org/wiki/Extension:ConfirmEdit And, more generally: http://www.mediawiki.org/wiki/Manual:Combating_spam Cheers, Thomas On Fri, Jun 12, 2009 at 18:46, Gwern Branwengwe...@gmail.com wrote:

Re: [Haskell-cafe] Wiki user accounts

2009-06-12 Thread Gwern Branwen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Fri, Jun 12, 2009 at 1:53 PM, Thomas ten Cate wrote: This runs on MediaWiki, right? How about adding a CAPTCHA for account registrations? http://www.mediawiki.org/wiki/Extension:ConfirmEdit See http://haskell.org/haskellwiki/Special:Version

Re: [Haskell-cafe] Wiki user accounts

2009-06-12 Thread Daniel Fischer
Am Freitag 12 Juni 2009 18:46:41 schrieb Gwern Branwen: There are only 3 bureaucrats/admins; one is a dummy account, one is Ashley, and one is John Peterson (who hasn't edited for a year). One solution would be to have Ashley re-enable user registrations. This has been suggested before, but

Re: [Haskell-cafe] Wiki user accounts

2009-06-12 Thread Magnus Therning
Daniel Fischer wrote: Am Freitag 12 Juni 2009 18:46:41 schrieb Gwern Branwen: There are only 3 bureaucrats/admins; one is a dummy account, one is Ashley, and one is John Peterson (who hasn't edited for a year). One solution would be to have Ashley re-enable user registrations. This has been

Re: [Haskell-cafe] Wiki user accounts

2009-06-12 Thread Felipe Lessa
On Fri, Jun 12, 2009 at 07:53:41PM +0200, Thomas ten Cate wrote: This runs on MediaWiki, right? How about adding a CAPTCHA for account registrations? What do we avoid at all costs? ___ |___| -- Felipe.

Re: [Haskell-cafe] ghci and applicative

2009-06-12 Thread Brent Yorgey
On Fri, Jun 12, 2009 at 03:00:12PM +0100, Paul Keir wrote: Thanks Ryan, I'm slowly becoming aware of the effects of Monomorphism. I'll look again at Neil Mitchell's blog post. I guess it's the same thing when I try: let a = 1 a + 1.0 I'm taking the mono as a clue that the type

Re: [Haskell-cafe] Wiki user accounts

2009-06-12 Thread Brent Yorgey
On Fri, Jun 12, 2009 at 08:22:25PM +0200, Daniel Fischer wrote: Am Freitag 12 Juni 2009 18:46:41 schrieb Gwern Branwen: There are only 3 bureaucrats/admins; one is a dummy account, one is Ashley, and one is John Peterson (who hasn't edited for a year). One solution would be to have Ashley

Re: [Haskell-cafe] Logo fun

2009-06-12 Thread Luke Palmer
Nice work, I love this one. :-) On Fri, Jun 12, 2009 at 3:25 AM, Thomas Davie tom.da...@gmail.com wrote: On 12 Jun 2009, at 11:15, Deniz Dogan wrote: 2009/6/12 Deniz Dogan deniz.a.m.do...@gmail.com: 2009/6/12 Tom Lokhorst t...@lokhorst.eu: There's a SVG version of the logo on the wiki:

[Haskell-cafe] [ANN] Nemesis : easy task management

2009-06-12 Thread Jinjing Wang
You can have a description file named Nemesis, with content nemesis = do clean [ **/*.hi , **/*.o , manifest ] task dist $ do sh cabal clean sh cabal configure sh cabal sdist task i (sh ghci -isrc

[Haskell-cafe] HSH and IO ()

2009-06-12 Thread Dimitry Golubovsky
John all, I use HSH in my project where several external programs and Haskell functions need to be piped together: HSH is of great help here. I however came across the situation when one of pipe-connected functions has signature IO (), yet it reads from stdin* and writes to stdout. The

[Haskell-cafe] Haskell Meetup groups in Glasgow

2009-06-12 Thread A Smith
Do any Haskell Meetup groups exist in or around Glasgow, an informal get-to-gether in a pub,cafe or wherever ? I'm in Edinburgh, and on my own have been desperately trying to rewire my brain from Perl to Haskell without much success for most of this year. I posted the meetup group question a few

[Haskell-cafe] Re: HSH and IO ()

2009-06-12 Thread John Goerzen
Dimitry Golubovsky wrote: John all, I use HSH in my project where several external programs and Haskell functions need to be piped together: HSH is of great help here. I however came across the situation when one of pipe-connected functions has signature IO (), yet it reads from stdin*