Re: [Haskell-cafe] Static linking problem // CentOS 5.5 - GHC 6.12.3

2011-03-16 Thread J . Waldmann
Why wouldn't the environment (i.e. available dynamic libraries) be correct for the web server? beacuse it runs CGI programs in a chroot jail? Then you need to copy the .so files into the jail, cf. http://www.cyberciti.biz/tips/howto-setup-lighttpd-php-mysql-chrooted-jail.html J.W.

[Haskell-cafe] Wanted: composoable parsers from haskell-src-exts

2011-03-14 Thread J . Waldmann
Hi. I want to use parsers from haskell-src-exts as sub-parsers, which does not seem to work since they insist on consuming the input completely. I would need them to parse a maximal prefix, and return the (unconsumed) rest of input as well (cf.

Re: [Haskell-cafe] How to write such a code elegantly ?

2011-01-10 Thread J . Waldmann
why has the following code indentation problem ? rollDice n = do let myGen = if doesFileExist /dev/urandom then betterStdGen else (mkStdGen . fromInteger) $ picoSec because if starts in the same column as myGen, so the parser inserts a ; before the if.

Re: [Haskell-cafe] Draw K-ary forest in dot script

2011-01-10 Thread J . Waldmann
parse K-ary forest and convert it to dot script (Graphviz). cf. http://hackage.haskell.org/package/graphviz ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] ghc/dph

2010-12-15 Thread J . Waldmann
It looks like your best bet may be to use GHC 6.12 but then the question remains: what version exactly, and where do I get it. it seems I need something that was HEAD at the time (6.13.* ?) but I don't find older snapshot releases on http://haskell.org/ghc/dist/ Thanks - J.W.

[Haskell-cafe] par / pseq example

2010-12-15 Thread J . Waldmann
I was trying to find an easy example for par/pseq, and I finally used plain mergesort ( on Prelude.[] ) and I observed that it is best to give +RTS -A1G (or more) such that there are only very few garbage collections. This roughly cuts execution time in half (from +RTS -N1 to -N4, on an i7 CPU)

[Haskell-cafe] coming soon: ICFP programming contest 2010

2010-06-17 Thread J . Waldmann
http://icfpcontest.org/2010/ will start roughly 12 hours from now. 2210222201011220101002200112200220010 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe