-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Here is a copy of all the files I am using to try to export a Haskell
function.
This compiles but produces a executable that simply hangs.
Tom
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/KUHbYha8TWXIQwoRAs8RAKCIFcnH9uuqf
-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 it
On Wed, 30 Jul 2003, Dennis Sidharta wrote:
> 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 wi
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
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
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_
__
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
escape
-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 throug
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
> > li
| > Hey, I wrote a CSV parser too. seeing as how this seems like a
common
| > thing (having 3 independent implementations at least), perhaps it
| > belongs in libraries somewhere? some area dedicated to useful little
| > grammers would be handy. csv, c header files, .x (rpcgen), various
| > prefere
10 matches
Mail list logo