On Wed, Jul 30, 2003 at 02:04:22PM +1000, Andrew J Bromage wrote:
On Tue, Jul 29, 2003 at 12:11:29PM +0200, Konrad Hinsen wrote:
I think that C++ was a lot worse, even the accepted features (e.g. templates)
didn't work the same with all compilers. All non-trivial code came with a
list of
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I've got a little function which I derived from Bird's book Intro to
Functional Programming using Haskell.
Basically I had several instances of lists that needed outputing with all
kinds of text decoration. This function was used repeatedly
In attempting to improve the CSV parser based on comments, I have the
following code that's attached. I'm having a heck of a time getting the
double quotes = an escaped quote thing to work. There is some commented out
code which was my last attempt. As it stands the code works, minus the
On Wednesday, July 30, 2003 1:52 PM, Shawn P. Garbett
[SMTP:[EMAIL PROTECTED] wrote:
output :: (a - IO b) - [a] - IO ()
output f = (foldr () (return ())).(map f)
Study the Prelude :)
output :: (a - IO b) - [a] - IO ()
output = mapM_
___
The Parsec library code contains string-parsing (with escapes) that you
might be able to use or canibalize. See 'StringLiteral' et seq in
ParsecToken.hs. The escape handling there is a fair amount of code, bit it
covers a lot of escape options.
#g
--
At 14:54 30/07/03 -0500, Shawn P. Garbett
Hi again,
I have tried to play around with MVar today, but
still... I did not see how to synchronize MVar without
the help of forkIO, and then explicitly call yield ::
IO (). But then, if I use forkIO I will create daemon
threads that will cause my program to terminates
immediately (back to the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Could someone give me a command line example of how to link a C programme
using functions exported via GHC FFI?
I've compile C object files using an FFI function but can't for the life
of me work out what arguments to pass to the compiler to make