On Wed, Sep 27, 2000 at 05:12:41PM +0000, Marcin 'Qrczak' Kowalczyk wrote:
> Wed, 27 Sep 2000 13:58:19 -0300, Jose Romildo Malaquias <[EMAIL PROTECTED]> 
>pisze:
> 
> > I am starting to use c2hs and I intend to use it
> > to build Haskell bindings for ncurses.
> 
> A curses binding in progress is in
> <http://qrczak.ids.net.pl/qforeign-0.60.tar.gz>. It is coupled with
> a proposal for the higher level FFI library, c2hs-like preprocessor
> for embedding C features in Haskell, and Unicode support. All are
> evolving. They require quite new ghc-4.09 from CVS.

And certainly it will be GHC specific, at least by now. Current
FFI extension is already present in other Haskell implementations
and a library based on it would be relatively portable now.
But I am doing that mainly for learning. If people think
the qforeign would be widely adopted by implementors, than there
is no point in writing my bindings for ncurses besides learning.
Otherwise, it could be of some value to the community.

> > My first question on using c2hs: how can I import a
> > function from C keeping his name in the Haskell side?
> 
> {#call theRealFunctionName as aPrivateFunctionNameForIt'sFFIBinding#}

Thanks.

Romildo
-- 
Prof. José Romildo Malaquias <[EMAIL PROTECTED]>
Departamento de Computação
Universidade Federal de Ouro Preto
Brasil

Reply via email to