Re: [Haskell-cafe] Google Summer of Code: Is this idea useful for the community?

2009-03-22 Thread Neil Mitchell
The main thing about reddit is the community, not the underlying code, and while I'm sure a SoC project could do something with the code, I don't see how you could build such a community. And if you did build a big community, then I think it would spiral out of control with only a summers work to

[Haskell-cafe] SoC idea: interactive profiling

2009-03-22 Thread Patai Gergely
Hello all, I entered a little proposal in the issue tracker: http://hackage.haskell.org/trac/summer-of-code/ticket/1570 As I see it, the graphical part could be a warm-up exercise with an already useful product, and interaction with the rts would be the actual challenge. Reasoning about

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Colin Adams
OK, I got it installed, but build warned me of duplicate dylibs, and running my program gave a bus error. So I port uninstalled gtk2, so now it compiled without warnings, but the program won't run because I had been forced to uninstall pangoft to uninstall gtk2. So now I need to uninstall the

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Hans Aberg
On 22 Mar 2009, at 10:28, Colin Adams wrote: OK, I got it installed, but build warned me of duplicate dylibs, and running my program gave a bus error. So I port uninstalled gtk2, so now it compiled without warnings, but the program won't run because I had been forced to uninstall pangoft to

[Haskell-cafe] Completely confused by cabal

2009-03-22 Thread Colin Paul Adams
[co...@susannah ghc]$ ghc-pkg list /usr/local/lib/ghc-6.11.20090319/./package.conf: Cabal-1.7.0, array-0.2.0.1, base-3.0.3.0, base-4.0.0.0, bytestring-0.9.1.4, containers-0.2.0.1, directory-1.0.0.2, (dph-base-0.4.0), (dph-par-0.4.0), (dph-prim-interface-0.4.0),

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Colin Adams
I tried issuing the sudo port install command on the wiki page. After some time running it failed with: To fully complete your installation and make python 2.5 the default, please run sudo port install python_select sudo python_select python25 --- Cleaning python25 ---

Re: [Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Colin Paul Adams
Achim == Achim Schneider bars...@web.de writes: Achim Colin Paul Adams co...@colina.demon.co.uk wrote: Why does cabal install nearly everything in the user repository rather than the global repository? Achim uh... because you're a mere user and don't have the rights to

[Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Achim Schneider
Colin Adams colinpaulad...@googlemail.com wrote: -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _hashopenssl.c -o build/temp.macosx-10.3-i386-2.5/_hashopenssl.o unable to execute

Re: [Haskell-cafe] Re: A guess on stack-overflows - thunksbuild-upandtail recursion

2009-03-22 Thread Claus Reinke
I just found out about GHood through this thread, and since it impressed me very much to see something so cool, I feel bad making this comment... but I am always disturbed by the flickering effect produced by java applets in my browser (FF 3.0) while scrolling. From an implementation

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Hans Aberg
On 22 Mar 2009, at 11:32, Colin Adams wrote: creating build/temp.macosx-10.3-i386-2.5 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ include/python2.5 -c _hashopenssl.c -o

[Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Achim Schneider
Colin Paul Adams co...@colina.demon.co.uk wrote: Why does cabal install nearly everything in the user repository rather than the global repository? uh... because you're a mere user and don't have the rights to do so? try su -, then cabal update to fill root's $HOME/.cabal with the needed

[Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Achim Schneider
Colin Paul Adams co...@colina.demon.co.uk wrote: Achim uh... because you're a mere user and don't have the rights Achim to do so? No, I own the machine. Well, but it neither knows nor cares, unless you log in as root. colin isn't allowed to write to /usr/local/lib/ghc-6.11.20090319/

Re: [Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Colin Paul Adams
So why doesn't it find packages then, when they are installed? -- Colin Adams Preston Lancashire ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Colin Adams
No. It's all recent. 2009/3/22 Hans Aberg hab...@math.su.se: On 22 Mar 2009, at 11:32, Colin Adams wrote: creating build/temp.macosx-10.3-i386-2.5 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include

[Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Achim Schneider
Colin Paul Adams co...@colina.demon.co.uk wrote: So why doesn't it find packages then, when they are installed? I've got no idea, what exactly are you trying to do, and how? -- (c) this sig last receiving data processing entity. Inspect headers for copyright history. All rights reserved.

Re: [Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Colin Paul Adams
Achim == Achim Schneider bars...@web.de writes: Achim Colin Paul Adams co...@colina.demon.co.uk wrote: So why doesn't it find packages then, when they are installed? Achim I've got no idea, what exactly are you trying to do, and Achim how? I'm trying to re-compile ghc

Re: [Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Andrea Vezzosi
On Sun, Mar 22, 2009 at 12:51 PM, Colin Paul Adams co...@colina.demon.co.uk wrote: Achim == Achim Schneider bars...@web.de writes:    Achim Colin Paul Adams co...@colina.demon.co.uk wrote:     So why doesn't it find packages then, when they are installed?        Achim I've got no idea, what

Re: [Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Andrea Vezzosi
I should clarify that cabal install --global won't see the packages installed in the user db, even if not run as root. But it at least will take into consideration the available packages' cache and the config file in ~/.cabal/ ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Hans Aberg
On 22 Mar 2009, at 12:45, Colin Adams wrote: No. It's all recent. And MacPorts installs its own gcc. Achim Scheider pointed out that the compiler name is missing, so the shell tries to execute '-DNDEBUG' as a program. When I try it, I get: $ sudo port install python_select Password: ---

[Haskell-cafe] Haskell syntax highlighting support for Trac

2009-03-22 Thread Manlio Perillo
Hi. I have noted that with Haskell projects that make use of Trac for issue tracking, it is not possible to have syntax highlighting for Haskell code. http://hackage.haskell.org/trac/hackage/wiki/WikiProcessors Is someone working on this? I can try to write a Trac plugin or patch to solve

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Hans Aberg
On 22 Mar 2009, at 11:32, Colin Adams wrote: I tried issuing the sudo port install command on the wiki page. What did you try to install? ... After some time running it failed with: To fully complete your installation and make python 2.5 the default, please run sudo port install

Re: [Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Duncan Coutts
On Sun, 2009-03-22 at 11:51 +, Colin Paul Adams wrote: Achim == Achim Schneider bars...@web.de writes: Achim Colin Paul Adams co...@colina.demon.co.uk wrote: So why doesn't it find packages then, when they are installed? Achim I've got no idea, what exactly are you

Re: [Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Colin Paul Adams
Andrea == Andrea Vezzosi sanzhi...@gmail.com writes: Andrea On Sun, Mar 22, 2009 at 12:51 PM, Colin Paul Adams Andrea co...@colina.demon.co.uk wrote: Achim == Achim Schneider bars...@web.de writes:    Achim Colin Paul Adams co...@colina.demon.co.uk wrote:     So why

Re: [Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Colin Paul Adams
Duncan == Duncan Coutts duncan.cou...@worc.ox.ac.uk writes: Duncan On Sun, 2009-03-22 at 11:51 +, Colin Paul Adams wrote: Achim == Achim Schneider bars...@web.de writes: Achim Colin Paul Adams co...@colina.demon.co.uk wrote: So why doesn't it find packages then, when

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Colin Adams
2009/3/22 Hans Aberg hab...@math.su.se: On 22 Mar 2009, at 11:32, Colin Adams wrote: I tried issuing the sudo port install command on the wiki page. What did you try to install? ... Just what it says on the wiki page: sudo port install glade3 libglade2 gstreamer gst-plugins-base

[Haskell-cafe] Function to cast types

2009-03-22 Thread Anonymous Anonymous
Hello, I'm new to haskell, I'm wondering how can you write a function that will do the following: fromIntToString :: Int - String this is a cast function to cast an Int to a String. I know such function exist, however let's assume it didn't exist. How would I write such function? Cause I have

Re: [Haskell-cafe] SoC idea: interactive profiling

2009-03-22 Thread Peter Verswyvelen
yep, sounds great to me :-) although with some hacks one can already have a poor mans real time interface for heap profiling: http://www.haskell.org/ghc/docs/latest/html/users_guide/hp2ps.html#id2677301 I agree that the effect of laziness can be very hard to grasp, sometimes it even feels that I

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Hans Aberg
On 22 Mar 2009, at 13:42, Colin Adams wrote: After some time running it failed with: To fully complete your installation and make python 2.5 the default, please run sudo port install python_select sudo python_select python25 ...The thing is that when I removed python_select and

[Haskell-cafe] Re: Function to cast types

2009-03-22 Thread Achim Schneider
Anonymous Anonymous temp.pub...@gmail.com wrote: Hello, I'm new to haskell, I'm wondering how can you write a function that will do the following: fromIntToString :: Int - String this is a cast function to cast an Int to a String. I know such function exist, however let's assume it

Re: [Haskell-cafe] Function to cast types

2009-03-22 Thread Roel van Dijk
I'm new to haskell, I'm wondering how can you write a function that will do the following: fromIntToString :: Int - String this is a cast function to cast an Int to a String. I'll assume that by a cast you mean a conversion from one type to another where no information is lost. -- Let's

[Haskell-cafe] Re: Function to cast types

2009-03-22 Thread Achim Schneider
Achim Schneider bars...@web.de wrote: Anonymous Anonymous temp.pub...@gmail.com wrote: fromIntToString :: Int - String intOfString = sum . map (uncurry (*)) . zip (map (10^) [0..]) . map intOfChar . reverse /me hides under a stone and tries again, this time with the

[Haskell-cafe] ANN: regex-tdfa 1.1.1

2009-03-22 Thread ChrisK
This is both a bug fix release and a feature release. The bug fix is a bit embarrassing, the indices were correct but the captured text was wrong in version 1.1.0. Oops. As of version 1.1.1 the following GNU extensions are recognized, all anchors: \` at beginning of entire text \' at end of

Re: [Haskell-cafe] Function to cast types

2009-03-22 Thread Gökhan San
Anonymous Anonymous temp.pub...@gmail.com writes: fromIntToString :: Int - String ... PS: if possible please do not use any casting functions that are predefined. This is a rather simplified version of the Show instance of Int from the libs: itos :: Int - String itos x | x 0 = '-' :

Re: [Haskell-cafe] Function to cast types

2009-03-22 Thread John Dorsey
Anonymous One, I'm new to haskell, I'm wondering how can you write a function that will do the following: fromIntToString :: Int - String Is this a homework assignment, perchance? Please take a look at http://www.haskell.org/haskellwiki/Homework_help Everyone here is glad to help, but we're

Re: [Haskell-cafe] Function to cast types

2009-03-22 Thread Anonymous Anonymous
Thank you all for your answers, you've all been a great help to me! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Function to cast types

2009-03-22 Thread Anonymous Anonymous
Hello, an answer from me, this is NOT the homework assignment. For my own homework assignment, I had to create custom data types and convert a string containing my datatype into my datatype. I will not expose my datatype, but it is something with logical operators. My approach would be using

Re: [Haskell-cafe] Function to cast types

2009-03-22 Thread Rafael Cunha de Almeida
John Dorsey wrote: Anonymous One, I'm new to haskell, I'm wondering how can you write a function that will do the following: fromIntToString :: Int - String Is this a homework assignment, perchance? Please take a look at http://www.haskell.org/haskellwiki/Homework_help Everyone here is

Re: [Haskell-cafe] about beta NF in lambda calculus

2009-03-22 Thread Claus Reinke
If above is true, I am confused why we have to distinguish the terms which have NF and be in NF? isn't the terms have NF will eventually become in NF? or there are some way to avoid them becoming in NF? Another way to think about it: what about terms which have no NF? And given both kinds of

Re: [Haskell-cafe] SoC idea: interactive profiling

2009-03-22 Thread Alex Ott
Hello PG == Patai Gergely writes: PG Hello all, I entered a little proposal in the issue tracker: PG http://hackage.haskell.org/trac/summer-of-code/ticket/1570 PG As I see it, the graphical part could be a warm-up exercise with an PG already useful product, and interaction with the rts

Re: [Haskell-cafe] Function to cast types

2009-03-22 Thread John Dorsey
Rafael Cunha de Almeida wrote: This e-mail is offtopic, but I suppose being a little offtopic every now and then isn't that bad, specially if the subject is interesting. So, here I go. It's the cafe'. Very little is strictly off-topic here, and certainly not this. I'm happy to help anyone

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Brandon S. Allbery KF8NH
On 2009 Mar 22, at 6:32, Colin Adams wrote: creating build/temp.macosx-10.3-i386-2.5 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ include/python2.5 -c _hashopenssl.c -o

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Colin Adams
No, I haven't done that - I forgot about that command since I first installed macports nearly a year ago. :-( Bit I DID manage to get the ports all installed (thanks to lots of help from Hans, and lots of individual port uninstalls followed by port installs). And configured gtk2hs ok. But when I

Re: [Haskell-cafe] SoC idea: interactive profiling

2009-03-22 Thread Donnie Jones
Hello Gergely, Last Summer, I also proposed a Google SOC project for profiling, called Parallel Profiling Support for GHC. This project was denied for the Google SOC mostly due to the scope of the project and the concern that the project would take far longer than the Summer. As this project

Re: [Haskell-cafe] SoC idea: interactive profiling

2009-03-22 Thread Patai Gergely
although with some hacks one can already have a poor mans real time interface for heap profiling: http://www.haskell.org/ghc/docs/latest/html/users_guide/hp2ps.html#id2677301 I'm aware of that, even did it myself a few times. That's part of the reason why I want something better. ;) I agree

[Haskell-cafe] ACM Task for C++ and Java programmers in Haskell. How to make code faster?

2009-03-22 Thread Vasyl Pasternak
Hi! Recently I've found interesting ACM research on C++ and Java efficiency. This task also was been solved on lisp/scheme and is described on http://www.flownet.com/ron/papers/lisp-java/ I tried to solve this task on Haskell but stuck with efficiency problems (approx in 1000 times slower and

[Haskell-cafe] Re: Function to cast types

2009-03-22 Thread Achim Schneider
It never looked like a homework assignment to me, if someone puts as much original thought into a mail than the OP, it's hard to believe he wouldn't have mentioned the fact in case it was indeed homework. Speaking of it, I don't really care whether something is homework or not, what I care about

Re: [Haskell-cafe] SoC idea: interactive profiling

2009-03-22 Thread Patai Gergely
Last Summer, I also proposed a Google SOC project for profiling, called Parallel Profiling Support for GHC. This project was denied for the Google SOC mostly due to the scope of the project and the concern that the project would take far longer than the Summer. Yes, I'm aware of that trap.

Re: [Haskell-cafe] [ANN] Safe Lazy IO in Haskell

2009-03-22 Thread nicolas . pouillard
Excerpts from Henning Thielemann's message of Sat Mar 21 22:27:08 +0100 2009: On Fri, 20 Mar 2009, Nicolas Pouillard wrote: Hi folks, We have good news (nevertheless we hope) for all the lazy guys standing there. Since their birth, lazy IOs have been a great way to modularly

Re: [Haskell-cafe] ACM Task for C++ and Java programmers in Haskell. How to make code faster?

2009-03-22 Thread Bulat Ziganshin
Hello Vasyl, Sunday, March 22, 2009, 8:25:02 PM, you wrote: i believe that i already seen this problem here a few years ago :) what search structure you was used? i think that immutable hash (represented as array of lists) would be useful here Hi! Recently I've found interesting ACM

Re: [Haskell-cafe] Haskell syntax highlighting support for Trac

2009-03-22 Thread Patai Gergely
I'm not sure what your problem is. I downloaded Trac not long ago, and Haskell highlighting worked out of the box for me after installing Pygments. Here's the proof (this is the wiki of a course I'm teaching): http://kfarkas.iit.bme.hu/trac/bfp/wiki/EloadasAbsztrakciok1 The code to activate it

Re: [Haskell-cafe] Re: Ease of Haskell development on OS X?

2009-03-22 Thread Colin Adams
2009/3/22 Colin Adams colinpaulad...@googlemail.com: No, I haven't done that - I forgot about that command since I first installed macports nearly a year ago. :-( Bit I DID manage to get the ports all installed (thanks to lots of help from Hans, and lots of individual port uninstalls followed

Re: [Haskell-cafe] Haskell syntax highlighting support for Trac

2009-03-22 Thread Manlio Perillo
Patai Gergely ha scritto: I'm not sure what your problem is. Yes, haskell support is available in recent versions of Trac. I was trying with the Trac instance for Hackage/Cabal. [...] Manlio ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: Re: [Haskell-cafe] [Haskell-beginners] appropriateness of haskell for GUIs

2009-03-22 Thread Sanny Sanoff
Brandon S. Allbery KF8NH wrote: Glade works fine if all you want is to place widgets; but it won't generate template code in Haskell (it will for C and C++) to connect the widgets together, which is what I understand from you have to type everything yourself. I use Template

[Haskell-cafe] Transforming XML using HXT, I'm confused.

2009-03-22 Thread P Orrifolius
Hello, I'm trying to transform a fragment of XML using HXT, specifically I'm trying to strip out any disallowed content while retaining as much as possible. For example I might be given barevilblah/evil/bar. I want to get rid of the 'evil' element but retain it's content resulting in

Re: [Haskell-cafe] SoC idea: interactive profiling

2009-03-22 Thread Donnie Jones
Hello Gergely, 2009/3/22 Patai Gergely patai_gerg...@fastmail.fm: Last Summer, I also proposed a Google SOC project for profiling, called Parallel Profiling Support for GHC.  This project was denied for the Google SOC mostly due to the scope of the project and the concern that the project

[Haskell-cafe] [ANN] salvia-0.1, salvia-extras-0.1

2009-03-22 Thread Sebastiaan Visser
Hi all, I am pleased to announce a new version of Salvia, the lightweight Haskell Web Server Framework with modular support for serving static files, directories indices, default error responses, connection counting and logging, HEAD and PUT requests, keep-alives, custom banner printing,

Re: [Haskell-cafe] [ANN] Safe Lazy IO in Haskell

2009-03-22 Thread Henning Thielemann
On Sun, 22 Mar 2009, nicolas.pouillard wrote: Excerpts from Henning Thielemann's message of Sat Mar 21 22:27:08 +0100 2009: Maybe you know of my packages lazy-io and explicit-exception which also aim at lazy I/O and asynchronous exception handling. I was indeed aware of these two packages

Re: [Haskell-cafe] ACM Task for C++ and Java programmers in Haskell. How to make code faster?

2009-03-22 Thread Vasyl Pasternak
Thanks for the point. I've found haskell solution there http://www.haskell.org/haskellwiki/Phone_number The second (shorter) solution is fantastic, it beats all other languages, but I'll never wrote such code in reasonable time :) 2009/3/22 Bulat Ziganshin bulat.zigans...@gmail.com: Hello

Re: [Haskell-cafe] [ANN] Safe Lazy IO in Haskell

2009-03-22 Thread nicolas . pouillard
Excerpts from Henning Thielemann's message of Sun Mar 22 22:52:48 +0100 2009: On Sun, 22 Mar 2009, nicolas.pouillard wrote: Excerpts from Henning Thielemann's message of Sat Mar 21 22:27:08 +0100 2009: Maybe you know of my packages lazy-io and explicit-exception which also aim at

Re: [Haskell-cafe] [ANN] Safe Lazy IO in Haskell

2009-03-22 Thread Henning Thielemann
On Sun, 22 Mar 2009, nicolas.pouillard wrote: It sounds like a nice idea, it would be great to have a straight-io package to play a bit more with explicit exceptions in things like 'IO'. Maybe I should then restrict lifting to LazyIO to SIO actions. That would not make LazyIO safe, but

Re: [Haskell-cafe] Re: Sometimes I wish there was a global variable

2009-03-22 Thread Rafael Cunha de Almeida
Maurí­cio wrote: Notice that rotX, rotY and pos are meant to be used as comunication between the keyboardMouse and display functions. They need to be set as 0 first, so display won't do anything. Only when they user press a few buttons that those values change, so display behaves accordanly.

Re: [Haskell-cafe] Re: Sometimes I wish there was a global variable

2009-03-22 Thread Felipe Lessa
On Sun, Mar 22, 2009 at 08:10:28PM -0300, Rafael Cunha de Almeida wrote: Doing it like that I could have all the definitions in one module, but it doesn't solve another important problem: keyboardMouse and display functions have to have as many parameters as there are IORefs. You may always

Re: [Haskell-cafe] Re: Function to cast types

2009-03-22 Thread Henning Thielemann
On Sun, 22 Mar 2009, Achim Schneider wrote: Anonymous Anonymous temp.pub...@gmail.com wrote: Hello, I'm new to haskell, I'm wondering how can you write a function that will do the following: fromIntToString :: Int - String this is a cast function to cast an Int to a String. I know such

Re: [Haskell-cafe] ACM Task for C++ and Java programmers in Haskell. How to make code faster?

2009-03-22 Thread wren ng thornton
Vasyl Pasternak wrote: The entire code I placed on http://hpaste.org/fastcgi/hpaste.fcgi/view?id=2764 Could someone help me to make this code faster? I'd like to see solution that will be elegant and fast, without heavy optimizations, that will make code unreadable. Also, if it possible,

Re: [Haskell-cafe] Re: Sometimes I wish there was a global variable

2009-03-22 Thread Brandon S. Allbery KF8NH
On 2009 Mar 22, at 19:10, Rafael Cunha de Almeida wrote: Doing it like that I could have all the definitions in one module, but it doesn't solve another important problem: keyboardMouse and display functions have to have as many parameters as there are IORefs. Or a single argument which holds

[Haskell-cafe] ANN: hranker: Basic utility for ranking a list of items (e.g. for the logo poll)

2009-03-22 Thread Robin Green
hranker is a fun little command-line utility I have written to help a user rank a list of items (of any type implementing Show, Eq and Ord). I hope the code is sufficiently clear that it could also serve as an educational piece of code, especially for people wanting to learn how to use the HCL

Re: [Haskell-cafe] Re: Sometimes I wish there was a global variable

2009-03-22 Thread Simon Richard Clarkstone
Ok, replying to the list this time. Darn Thunderbird not reading my mind again. Rafael Cunha de Almeida wrote: Maurí­cio wrote: In one module, you can write: -- giveMeFunctions = do { newIORef ... newIORef ... newIORef ... (...) let f1 = ... let f2 = ...

[Haskell-cafe] How to send signal from Xmonad to my app?

2009-03-22 Thread Magicloud Magiclouds
Hi, I have a little program, which shows a message box when gets 'USR1' signal. This works fine when I `kill -USR1 $PID`. But my code in xmonad.hs does not work. No error throws out. And as I inspected, the pid is right. Only nothing happened in my app. So I wonder what is wrong? 28