[Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Yann Golanski
I cannot seem to be able to install yi via cabal install. The error I get is as follows. I suspect alex is not installed in the correct place. ; sudo cabal install yi Resolving dependencies... Downloading yi-0.4.3... Configuring yi-0.4.3... cabal: alex version =2.0.1 3 is required but it

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Yann Golanski
Quoth Austin Seipp on Wed, Jul 30, 2008 at 03:45:49 -0500 Excerpts from Yann Golanski's message of Wed Jul 30 02:34:05 -0500 2008: I cannot seem to be able to install yi via cabal install. The error I get is as follows. I suspect alex is not installed in the correct place. ... Hi,

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Yann Golanski
Quoth Nicolas Pouillard on Wed, Jul 30, 2008 at 11:06:43 +0200 Excerpts from Yann Golanski's message of Wed Jul 30 10:59:35 +0200 2008: ; sudo cabal install yi Resolving dependencies... 'yi-0.4.3' is cached. Configuring yi-0.4.3... Preprocessing library yi-0.4.3... Preprocessing

Re: [Haskell-cafe] Rotating backdrop (aka learning Haskell)

2008-06-03 Thread Yann Golanski
First version is available at: http://www.kierun.org/backdropper-1.0.tbz2 It is minimal but does the trick of randomly rotating backgrounds. Features to add are only rotate during work hours, making sure that all images are shown within a day and a nice GUI. Criticism welcome. -- [EMAIL

Re: [Haskell-cafe] Re: Images and GUIs in Haskell

2008-06-02 Thread Yann Golanski
Quoth Achim Schneider on Sun, Jun 01, 2008 at 04:09:10 +0200 I would go for GL(U(T)), as it's as good for 2d primitives as SDL will ever be, has excellent cross-platform support and allows you to go 3d if you want to. There's also some very decent event handling. You can use R as well.

Re: [Haskell-cafe] What's NaN?

2008-05-28 Thread Yann Golanski
Quoth PR Stanley on Wed, May 28, 2008 at 08:04:44 +0100 Hello Why does sqrt (-16) return NaN? What is NaN? NaN stands for Not a Number. See the complex library for how to have complex numbers. -- [EMAIL PROTECTED] -= H+ =- www.kierun.org PGP: 009D 7287 C4A7 FD4F

Re: [Haskell-cafe] Rotating backdrop (aka learning Haskell)

2008-05-21 Thread Yann Golanski
Quoth Derek Elkins on Tue, May 20, 2008 at 11:45:57 -0500 On Tue, 2008-05-20 at 10:55 +0200, Ketil Malde wrote: Yann Golanski [EMAIL PROTECTED] writes: 1- Get a list out of a file: I managed to do that using the following: parseImageFile :: FilePath - IO [String] parseImageFile

[Haskell-cafe] Rotating backdrop (aka learning Haskell)

2008-05-20 Thread Yann Golanski
To help me learn Haskell, I decided on a simple (AH!) problem: given a list of images, display a random one as my desktop backdrop. After some time, change the image. Simple? What I actually want to do is a little more specific: Read a list of images (one per line) from a file. Given that a