Re: [Haskell-cafe] Re: Yi pre-release

2007-04-08 Thread Bas van Dijk
Thanks, I've managed to make yi. However when I try to make an interface: $ make yi-vty make complains: ... setup: cannot satisfy dependency filepath=1.0 ... Where can I find a filepath=1.0? The one I have from Neil Mitchell is version 0.11. regards, Bas van Dijk

[Haskell-cafe] Yi Source

2007-04-08 Thread Dave Feustel
Is the full source of Yi suitable for building on non-linux platforms (ie OpenBSD) (going to be) available? Thanks, Dave Feustel http://RepublicBroadcasting.org - Because You CAN Handle The Truth! ___ Haskell-Cafe mailing list

[Haskell-cafe] Re: Yi pre-release

2007-04-08 Thread Jean-Philippe Bernardy
Where can I find a filepath=1.0? The one I have from Neil Mitchell is version 0.11. You want filepath from http://darcs.haskell.org/packages/filepath/ Cheers, JP. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] RE: What I learned from my first serious attempt low-level Haskell programming

2007-04-08 Thread Thomas Conway
| 6. The inliner is a bit too greedy. Removing the slow-path code from |singleton doesn't help because popSingleton is only used once; but |if I explicitly {-# NOINLINE popSingleton #-}, the code for |singleton itself becomes much smaller, and inlinable (15% perf |gain). Plus

Re: [Haskell-cafe] Yi Source

2007-04-08 Thread Donald Bruce Stewart
dfeustel: Is the full source of Yi suitable for building on non-linux platforms (ie OpenBSD) (going to be) available? Yes, it is *always* available via darcs. I use yi on openbsd too :-) See here, http://www.cse.unsw.edu.au/~dons/yi.html -- Don

[Haskell-cafe] Function call by string

2007-04-08 Thread Philipp Volgger
Hello everybody! Can me somebody say how I can call a function by string? Thus I want to have a function that has as argument a string (name of a function to call) and then tries to call that function, a kind of: functionCall :: String - [String] - RetVal functionCall functionName arguments =

Re: [Haskell-cafe] Function call by string

2007-04-08 Thread Donald Bruce Stewart
pvolgger: Hello everybody! Can me somebody say how I can call a function by string? Thus I want to have a function that has as argument a string (name of a function to call) and then tries to call that function, a kind of: functionCall :: String - [String] - RetVal functionCall

Re: [Haskell-cafe] Function call by string

2007-04-08 Thread Lennart Augustsson
In general, you can't do that. You can only do it if you restrict the functions that can be called somehow, e.g., by having a list of callable functions and their names. Why do you want to do this? Perhaps there is a more Haskelly solution to your problem. -- Lennart On Apr 8,

Re: [Haskell-cafe] ANN: XMPP 0.0.1

2007-04-08 Thread Bjorn Bringert
On Apr 8, 2007, at 2:03 , Magnus Henoch wrote: I'm hacking a library for writing XMPP clients, and just decided that my work is good enough to call it version 0.0.1. Find source and documentation here: http://www.dtek.chalmers.se/~henoch/text/hsxmpp.html It contains a werewolf bot as an

Re: [Haskell-cafe] Function call by string

2007-04-08 Thread Philipp Volgger
Well, the Haskell files are not the problem, they don't have to be built automatically. The point is that I want to call functions in a Haskell function if I get their names as strings. Isn't there any possibilty to do that? Eventually the interpreter reads also the console in to execute the

[Haskell-cafe] ANN: utility for deriving rules from a nominal table

2007-04-08 Thread Hans van Thiel
Hello All, I'd like to announce the availability of Emping, a utility that reads a table in a csv format that can be generated from Open Office Calc, derives all shortest rules for a selected attribute, and writes them to a .csv file that can be read by OO Calc. See

[Haskell-cafe] Yi pre-release

2007-04-08 Thread Dominic Steinitz
setup: Unrecognised flags: --disable-haddock-use-packages make[1]: *** [.setup-config] Error 1 make[1]: Leaving directory `/home/dom/yi/yi/packages/yi-vty' ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Function call by string

2007-04-08 Thread Stefan O'Rear
On Sun, Apr 08, 2007 at 03:26:25PM +0200, Philipp Volgger wrote: Well, the Haskell files are not the problem, they don't have to be built automatically. The point is that I want to call functions in a Haskell function if I get their names as strings. Isn't there any possibilty to do that?

Re: [Haskell-cafe] Re: Yi pre-release

2007-04-08 Thread Bas van Dijk
On 4/8/07, Jean-Philippe Bernardy [EMAIL PROTECTED] wrote: You want filepath from http://darcs.haskell.org/packages/filepath/ Thanks, I got it working now. Bas van Dijk ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Re: Type error

2007-04-08 Thread oleg
Alfonso Acosta wrote: I have a type problem in my code which I dont know how to solve data HDSignal a = HDSignal class HDPrimType a where class PortIndex a where class SourcePort s where -- Plug an external signal to the port plugSig :: (HDPrimType a, PortIndex ix) =ix - s -(HDSignal

[Haskell-cafe] [Beginner's Question] How to read filenames from a DirStream

2007-04-08 Thread Albert Lee
Newbie's question: I want to ls the filenames of a directory. The program in C is something like: #include direnet.h int main(){ DIR *dp; struct dirent *dirp; dp = opendir(/); while((dirp = readdir(dp)) != NULL) printf(%s\n, dirp-d_name); closedir(dp); } and I write that

Re: [Haskell-cafe] [Beginner's Question] How to read filenames from a DirStream

2007-04-08 Thread Alec Berryman
Albert Lee on 2007-04-09 10:46:14 +0800: I want to ls the filenames of a directory. [...] and I write that in haskell: - import System.Posix import System.IO main = do dp - openDirStream / df - readDirStream dp putStrLn df closeDirStream dp -- It

[Haskell-cafe] Stubborn memory leak

2007-04-08 Thread Oren Ben-Kiki
I've minimized my problem to a short test program I pasted at http://hpaste.org/1314 The problem seems to be in forcing strict evaluation at just the right place, but all my attempts in doing so have causes the program to stop streaming and start consuming memory again - this time in un-emitted

Re: [Haskell-cafe] [Beginner's Question] How to read filenames from a DirStream

2007-04-08 Thread Albert Lee
Thanks for your reply. and I have done it by: import System.IO import System.Posix import System.Directory show_current_dir :: IO () show_current_dir = do curr_dir - getWorkingDirectory putStrLn (Current Working Directory: ++ curr_dir) ls_dir1 :: String - IO [()] ls_dir1 fp = do files -

Fwd: [Haskell-cafe] Yi pre-release

2007-04-08 Thread Dominic Steinitz
-- Forwarded Message -- setup: Unrecognised flags: --disable-haddock-use-packages make[1]: *** [.setup-config] Error 1 make[1]: Leaving directory `/home/dom/yi/yi/packages/yi-vty' --- [EMAIL PROTECTED]:~/yi/yi make emacs