RE: Announce: wxHaskell 0.2

"Daan Leijen" <[email protected]>
Newsgroups gmane.comp.lang.haskell.gui,gmane.comp.lang.haskell.general
Message-ID <000101c37c8f$a2b27dc0$a52a7e50@lambda>
Hi Sven,

(I'll reply to the portability issues in a separate mail)

>   * It would be nice if the directory created by unzipping 
> wxhaskell-src-0.2.zip  contained a version number.
> 
>   * It would be even nicer if wxhaskell-doc-0.2.zip unzipped 
> into a *single*  directory.
> 
>   * You need `-package parsec' for linking wxdirect nowadays.

Thanks for the hints. I'll look into it for a future version.
I will not actively support CVS GHC's though -- that will be too much
work :-)

>   * When HelloWorld terminates, it segfaults in wxVariant()'s 
> destructor. I have no idea what's going on here, but I can only repeat
my 
> warnings stated some time ago: Mixing a C++ library with pure C (=
GHC's code) 
> is a highly  delicate, platform/compiler dependent and fragile thing
to do...

I am quite sure that this has nothing to do with C vs. C++ :-)
(I am not linking at all with C++ directly -- instead I am using extern
C
wrappers that are used in a separate dynamic link library with their own
C++ runtime system. This is just like calling any other systems library.
)

The segfault is really weird though -- it might be that you started
"main" twice
from GHCi (a known bug in wxGTK), that your GHC is broken, that you use
an
old GTK, anything really.... :-(

>   * The package configuration should include linker flags for 
> the path of libwxc.so, otherwise a non-superuser has to fiddle around
with
>     LD_LIBRARY_PATH and the like.

I am fairly hesitant here -- this means that I need two different
package
description files -- one for binary installs and one for developer
installs.
I'll look into it, but since I am not a real unix wizard, maybe you can
tell me offline what you exactly need/want.

All the best,
 Daan.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.