[Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

2013-03-30 Thread Alfredo Di Napoli
Hi Cafè, I've tried installing threadscope, but when I run it from console with threadscope I get a laconic segmentation fault. Some info to help the debugging: * Installed gtk via brew * gtk-demo runs correctly * I'm using Mac Os X 10.8.3 * Running gtk and threadscope through a virtual

Re: [Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

2013-03-30 Thread John Wiegley
Alfredo Di Napoli alfredo.dinap...@gmail.com writes: I know it's a bit difficult to debug this way, I can try debugging with gdb if it can help. Yes, can you show us a backtrace from gdb, and also look in your CrashReports log folder to see if it gives a bit more information on the state of

[Haskell-cafe] Optimizing Fold Expressions

2013-03-30 Thread J. J. W.
Dear all, I was wondering whether it was possible to write fold expressions more elegantly. Suppose I have the following datastructure: data Expr = Add Expr Expr | Sub Expr Expr | Mul Expr Expr | Eq Expr Expr | B Bool | I Int deriving

Re: [Haskell-cafe] [ANN] hoodle-0.2

2013-03-30 Thread Anton Kholomiov
Things I have to install on Ubuntu to get it going: librsvg2-dev (for svgcairo), libpoppler-glib-dev (for poppler), libgd2-xpm-dev (for gd). 2013/3/30 Ian-Woo Kim ianwoo...@gmail.com Hi, all, Pen note-taking program hoodle, which is being developed entirely in haskell, is updated to

Re: [Haskell-cafe] [ANN] hoodle-0.2

2013-03-30 Thread Ian-Woo Kim
Oh. Thanks for the report. I forgot to mention librsvg and gd2 dependence. They are mandatory for svg, jpeg, png processing in hoodle. I will make a note on that on the hoodle web page. Thanks! IW On Sat, Mar 30, 2013 at 2:57 PM, Anton Kholomiov anton.kholom...@gmail.comwrote: Things I have

Re: [Haskell-cafe] Optimizing Fold Expressions

2013-03-30 Thread Roman Cheplyaka
The solution to this problem is called scrap your boilerplate. There are a few libraries that implement it, in different variations. Let me show you how to do it using my library, 'traverse-with-class'. You'll need install it and the 'tagged' package to run this example. {-# LANGUAGE

[Haskell-cafe] install cuda

2013-03-30 Thread Peter Caspers
Hi, I am trying to install the cuda package on a Windows 7 enviroment. However I run into an error and can not figure out, what it is. Can someone help ? Thanks a lot Peter C:\Users\Peter\_dev\haskellcabal install cuda Resolving dependencies... [1 of 1] Compiling Main (

Re: [Haskell-cafe] Optimizing Fold Expressions

2013-03-30 Thread José Pedro Magalhães
Hi, Actually, if you really want folds, you should use regular [1] instead. Here's an example of a generic fold using regular: -- Datatype representing logical expressions data Logic = Var String | Logic :-: Logic -- implication | Logic :-: Logic -- equivalence

Re: [Haskell-cafe] install cuda

2013-03-30 Thread Henk-Jan van Tuyl
On Sat, 30 Mar 2013 20:43:58 +0100, Peter Caspers pcaspers1...@gmail.com wrote: Hi, I am trying to install the cuda package on a Windows 7 enviroment. However I run into an error and can not figure out, what it is. : : configure: error: C compiler cannot create executables See

Re: [Haskell-cafe] install cuda

2013-03-30 Thread Trevor L. McDonell
Hi, CUDA package maintainer here. I don't have access to a Win7 box with compatible GPU, nor a lot of experience writing packages for windows. If you do get it working please send me a pull request on github. I'd be great to have this working for windows as well. Cheers, -Trevor On