Re: [Haskell-cafe] Re: Call Graph Tool?

2008-06-27 Thread Evan Laforge
Assuming I get it included, is there any features in particular you'd want to see in there? Note that if I do have it produce visualisations, they'll be static images as part of an analysis report rather than being interactive. I was just recently wondering about something like this. I'd

[Haskell-cafe] Fwd: Stack Overflow with HaXml

2008-06-27 Thread Samuel Silva
Hello I presents a small case studie, when I was using HaXml with DtdToHaskell. I write small DTD: !ELEMENT top (#PCDATA|child)* !ELEMENT child (#PCDATA) I run DtdToHaskell small.DTD Extsubext.hs and test it with small XML topchild/child/top Result it is presented below: $ ghci

[Haskell-cafe] System.Console.Readline stifleHistory Question

2008-06-27 Thread Daniel Kahlenberg
Hello all, I'm learning Haskell and so very likely will have advantages from the history persistence feature added to the ghci haskell interpreter. It drives very well in my setup (the history file is growing and used), but I wanted to increase the number of saved history entries and now my

Re: [Haskell-cafe] Re: Call Graph Tool?

2008-06-27 Thread Claus Reinke
Assuming I get it included, is there any features in particular you'd want to see in there? Note that if I do have it produce visualisations, they'll be static images as part of an analysis report rather than being interactive. I'd like the ability to show individual module dependencies, and

[Haskell-cafe] Re: System.Console.Readline stifleHistory Question

2008-06-27 Thread Daniel Kahlenberg
OK, I detected it was my own fail: I was misleaded by the creation of the persistence file, which doesn't result from Readline.hs but simply from the rlwrap utility I earlier piped in before the ghci call. For those interested, the answer to the original question as usual from the man page:

Re: [Haskell-cafe] Call Graph Tool?

2008-06-27 Thread J.N. Oliveira
On Jun 26, 2008, at 4:17 PM, C.M.Brown wrote: Hi, I have approx. 100+ source files and I was wondering if anyone has a tool that would let me see a visual call graph for the source files; i.e. a visual hierarchy of which module is imported by what, and so forth. Kind regards, Chris. I

Re: [Haskell-cafe] Re: Call Graph Tool?

2008-06-27 Thread Dougal Stanton
On Fri, Jun 27, 2008 at 11:39 AM, Claus Reinke [EMAIL PROTECTED] wrote: If you wanted to go down that route, try using 'ghc --make -v2' and translate that dependency graph to dot. Also, if you want to get a quick 'n dirty list of which of your own files depend on which others, ghc -M $main.hs

Re: [Haskell-cafe] Re: Call Graph Tool?

2008-06-27 Thread Malcolm Wallace
try using 'ghc --make -v2' and translate that dependency graph to dot. ghc -M $main.hs works quite well hmake -M Main.hs gives much the same output as ghc -M, but without side-effecting your Makefile. Even better, hmake -g Main.hs gives the pure module graph dependencies without

Re: [Haskell-cafe] Re: Call Graph Tool?

2008-06-27 Thread Josef Svenningsson
On Fri, Jun 27, 2008 at 12:39 PM, Claus Reinke [EMAIL PROTECTED] wrote: Assuming I get it included, is there any features in particular you'd want to see in there? Note that if I do have it produce visualisations, they'll be static images as part of an analysis report rather than being

Re: [Haskell-cafe] Re: Call Graph Tool?

2008-06-27 Thread Claus Reinke
If you wanted to go down that route, try using 'ghc --make -v2' and translate that dependency graph to dot. Also, if you want to get a quick 'n dirty list of which of your own files depend on which others, ghc -M $main.hs works quite well. I've had some success in the past shoving this stuff

Re: [Haskell-cafe] Access to Oracle database from Haskell

2008-06-27 Thread Alistair Bayley
2008/6/26 Henning Thielemann [EMAIL PROTECTED]: Do you need to say -lclntsh when you use ghc to compile? Ah, I see, I must run both GHCi and GHC with -package Takusen and everything is fine. This still doesn't seem right. Both ghci and ghc --make should automatically link the package. The

[Haskell-cafe] Error in configure script for GHC

2008-06-27 Thread Jefferson Heard
I've tried all the 6.6 and 6.8 versions, trying to compile them on a RHEL-based supercomputer, and I always see this error when I run ./configure: -bash-3.00$ ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target

Re: [Haskell-cafe] Parsing problem

2008-06-27 Thread Eric
Daniel Fischer wrote: sat p = try $ do (t,pos) - item if p t then return (t,pos) else pzero and you're all set (you don't need the try's in atom, then). Thanks, that works! E. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] what's up with hackage.haskell.org?

2008-06-27 Thread Martin DeMello
haven't been able to get to it in a couple of days (at least) martin ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

RE: [Haskell-cafe] what's up with hackage.haskell.org?

2008-06-27 Thread Simon Peyton-Jones
| Subject: [Haskell-cafe] what's up with hackage.haskell.org? | | haven't been able to get to it in a couple of days (at least) It's offline for 24 hrs while Galois move office. Simon ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] what's up with hackage.haskell.org?

2008-06-27 Thread Martin DeMello
On Fri, Jun 27, 2008 at 9:25 AM, Simon Peyton-Jones [EMAIL PROTECTED] wrote: | Subject: [Haskell-cafe] what's up with hackage.haskell.org? | | haven't been able to get to it in a couple of days (at least) It's offline for 24 hrs while Galois move office. Ah, okay :) Just noticed it when I

Re: [Haskell-cafe] Re: Call Graph Tool?

2008-06-27 Thread C.M.Brown
Hi Ivan, Assuming I get it included, is there any features in particular you'd want to see in there? Note that if I do have it produce visualisations, they'll be static images as part of an analysis report rather than being interactive. I'd basically like to see a graph of the overall

Re: [Haskell-cafe] Call Graph Tool?

2008-06-27 Thread C.M.Brown
Hi Jno, I suggest that you have a look at HaSlicer, a (visual) Haskell slicing tool available online from http://labdotnet.di.uminho.pt/ HaSlicer/HaSlicer.aspx , developed by Nuno Rodrigues ([EMAIL PROTECTED]). Oh excellent, yes I'd forgotten about this, thanks. Chris.

Re: [Haskell-cafe] Error in configure script for GHC

2008-06-27 Thread Brandon S. Allbery KF8NH
On Jun 27, 2008, at 10:15 , Jefferson Heard wrote: checking for path to top of build tree... pwd: timer_create: Invalid argument Translated into plain English, this means your glibc is too old for this binary distribution. You will probably have to build from source with an older gcc as

Re: [Haskell-cafe] Access to Oracle database from Haskell

2008-06-27 Thread Henning Thielemann
On Fri, 27 Jun 2008, Alistair Bayley wrote: 2008/6/26 Henning Thielemann [EMAIL PROTECTED]: Do you need to say -lclntsh when you use ghc to compile? Ah, I see, I must run both GHCi and GHC with -package Takusen and everything is fine. This still doesn't seem right. Both ghci and ghc

Re: [Haskell-cafe] Re: Haskell on ARM (was Re: ANN: Topkata)

2008-06-27 Thread Jeremy Shaw
At Fri, 27 Jun 2008 09:57:29 +1000, Jeremy Apthorp wrote: Next year I'll be working on a project for my undergraduate computing course at UNSW that will involve getting GHC to target the Nintendo DS. It'll require cross-compilation, because the DS isn't powerful enough to actually run GHC (4M

Re: [Haskell-cafe] Error in configure script for GHC

2008-06-27 Thread Reid Barton
On Fri, Jun 27, 2008 at 10:15:23AM -0400, Jefferson Heard wrote: I've tried all the 6.6 and 6.8 versions, trying to compile them on a RHEL-based supercomputer, and I always see this error when I run ./configure: -bash-3.00$ ./configure checking build system type... x86_64-unknown-linux-gnu

[Haskell-cafe] ghci vi mode?

2008-06-27 Thread Adam Smyczek
If I remember correctly, ghci uses readline framework on Linux/OS X. Is it possible to change ghci editing mode to vi? Thanks, Adam ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Error in configure script for GHC

2008-06-27 Thread Jefferson Heard
Linux version 2.6.9-34.0.2.ELsmp ([EMAIL PROTECTED]) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Fri Jul 7 18:22:55 CDT 2006 This is my version string if that helps... I'd do the bootstrap build right now, but hackage is down (I understand it's moving), and I can't get to the

Re: [Haskell-cafe] Error in configure script for GHC

2008-06-27 Thread Brandon S. Allbery KF8NH
On Jun 27, 2008, at 15:04 , Jefferson Heard wrote: Linux version 2.6.9-34.0.2.ELsmp ([EMAIL PROTECTED] build.centos.org) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Fri Jul 7 18:22:55 CDT 2006 I can't help with much of anything Linux aside form having run into that error on

Re: [Haskell-cafe] ghci vi mode?

2008-06-27 Thread Evan Laforge
On Fri, Jun 27, 2008 at 12:04 PM, Adam Smyczek [EMAIL PROTECTED] wrote: If I remember correctly, ghci uses readline framework on Linux/OS X. Is it possible to change ghci editing mode to vi? Here's what I have: % cat ~/.inputrc set editing-mode vi set keymap vi set bell-style none

Re: Haskell on ARM (was Re: [Haskell-cafe] ANN: Topkata)

2008-06-27 Thread John Meacham
Just a random note. jhc works fine on ARM, I have successfully run Haskell programs on on iPhone and a nokia n800 tablet compiled with it. jhc is, of course, still pretty unstable. but new developers are always welcome. John -- John Meacham - ⑆repetae.net⑆john⑈

Re: [Haskell-cafe] blas bindings, why are they so much slower the C?

2008-06-27 Thread Anatoly Yakovenko
I suspect that it is your initialization that is the difference. For one thing, you've initialized the arrays to different values, and in your C code you've fused what are two separate loops in your Haskell code. So you've not only given the C compiler an easier loop to run (since you're

Re: [Haskell-cafe] blas bindings, why are they so much slower the C?

2008-06-27 Thread Dan Doel
On Friday 27 June 2008, Anatoly Yakovenko wrote: $ cat htestdot.hs {-# OPTIONS_GHC -O2 -fexcess-precision -funbox-strict-fields -fglasgow-exts -fbang-patterns -lcblas#-} module Main where import Data.Vector.Dense.IO import Control.Monad main = do let size = 10 let times =

[Haskell-cafe] ANN: Gtk2Hs 0.9.13 released

2008-06-27 Thread Peter Gavin
Hello everyone, Gtk2Hs version 0.9.13 is now available. [1] New features: * bindings for Gnome VFS and GStreamer * a new Gtk+ tutorial has been adapted by Hans van Thiel * cairo image stride support * many new demos * compiles with GHC 6.8.3 * lots of bug fixes This

Re: [Haskell-cafe] blas bindings, why are they so much slower the C?

2008-06-27 Thread Anatoly Yakovenko
i get the same crappy performance with: $ cat htestdot.hs {-# OPTIONS_GHC -O2 -fexcess-precision -funbox-strict-fields -fglasgow-exts -fbang-patterns -lcblas#-} module Main where import Data.Vector.Dense.IO import Control.Monad main = do let size = 10 let times = 10*1000*1000

Re: [Haskell-cafe] blas bindings, why are they so much slower the C?

2008-06-27 Thread Don Stewart
aeyakovenko: i get the same crappy performance with: $ cat htestdot.hs {-# OPTIONS_GHC -O2 -fexcess-precision -funbox-strict-fields -fglasgow-exts -fbang-patterns -lcblas#-} module Main where import Data.Vector.Dense.IO import Control.Monad main = do let size = 10 let times =