source release for Windows / GreenCard.h ?
Sigbjorn Finne
sof@galois.com
Mon, 21 Jan 2002 23:16:09 -0800
Hi,
since the FFI support is still experimental, you do
need the source distribution of Hugs to use it.
The filename GreenCard.h is confusing, it really isn't
GC-specific, but Hugs specific (the pain of renaming it
has until now been deemed greater than living with the
slightly confusing filename). You don't need GreenCard to
use the FFI bits in Hugs.
Thanks for the suggestion re: source bundle for Win32
users; now added (FYI - WinZip is capable of handling
.tar.gz bundles and can perform LF => CRLF translation
automatically.)
The next binary release of Hugs will have GreenCard.h included -
an oversight not to include in the current release.
Hope that answers your questions, but probably not in the
order in which you asked them ;-)
--sigbjorn
----- Original Message -----
From: "Antony Courtney" <antony@apocalypse.org>
To: <hugs-bugs@haskell.org>
Sent: Monday, January 21, 2002 20:45
Subject: source release for Windows / GreenCard.h ?
> Hi all,
>
> I have started to explore the rudimentary ffi support provided with hugs.
>
> I see that the generated C module produced by hugs +G wants to include
> "GreenCard.h". Since "GreenCard.h" isn't included in the binary
> distribution of hugs, I tried pointing my C compiler at my GreenCard
> 2.03 installation.
>
> However, the generated code emits a function prototype:
>
> DLLEXPORT(void) initModule(HugsAPI3 *);
>
> which depends on HugsAPI3, which isn't defined in the GreenCard.h
> included in GreenCard 2.03.
>
> A few questions:
>
> - what should I need as a developer to use hug's ffi support? Do I need
> GreenCard? Do I need a source release of hugs? what should I need if I
> were a non-developer user of an ffi-based library under hugs?
> - Can / should the GreenCard.h in the official greencard release be
> updated to include a definition of HugsAPI3?
> - Should the binary release of hugs perhaps include a hugs-specific
> GreenCard.h?
>
> Also, I notice that there is a source release of hugs for Unix, but
> there does not appear to be a corresponding source release for Windows.
> Could one be provided (with appropriate Windows line terminators, and
> in WinZip format)?
>
> Thanks!
>
> -antony
>
>
> --
> Antony Courtney
> Grad. Student, Dept. of Computer Science, Yale University
> antony@apocalypse.org http://www.apocalypse.org/pub/u/antony
>
>
> _______________________________________________
> Hugs-Bugs mailing list
> Hugs-Bugs@haskell.org
> http://www.haskell.org/mailman/listinfo/hugs-bugs